Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
42453af8
Commit
42453af8
authored
3 years ago
by
Carlos Natalino Da Silva
Browse files
Options
Downloads
Patches
Plain Diff
Modifying the name of the template coveragerc file and updating scripts accordingly.
parent
70de2102
No related branches found
No related tags found
1 merge request
!54
Release 2.0.0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-1
1 addition, 1 deletion
.gitignore
coverage/.coveragerc.template
+0
-0
0 additions, 0 deletions
coverage/.coveragerc.template
report_coverage_all.sh
+1
-1
1 addition, 1 deletion
report_coverage_all.sh
run_local_tests.sh
+2
-4
2 additions, 4 deletions
run_local_tests.sh
with
4 additions
and
6 deletions
.gitignore
+
1
−
1
View file @
42453af8
...
...
@@ -42,7 +42,7 @@ htmlcov/
.tox/
.nox/
.coverage
.coveragerc
.final
.coveragerc
.coverage.*
.cache
nosetests.xml
...
...
This diff is collapsed.
Click to expand it.
coverage/.coveragerc
→
coverage/.coveragerc
.template
+
0
−
0
View file @
42453af8
File moved
This diff is collapsed.
Click to expand it.
report_coverage_all.sh
+
1
−
1
View file @
42453af8
...
...
@@ -3,7 +3,7 @@
PROJECTDIR
=
`
pwd
`
cd
$(
dirname
$0
)
/src
RCFILE
=
$PROJECTDIR
/
controller/
coverage/.coveragerc
RCFILE
=
$PROJECTDIR
/coverage/.coveragerc
echo
echo
"Coverage report:"
...
...
This diff is collapsed.
Click to expand it.
run_local_tests.sh
+
2
−
4
View file @
42453af8
...
...
@@ -3,11 +3,11 @@
PROJECTDIR
=
`
pwd
`
cd
$(
dirname
$0
)
/src
RCFILE
=
$PROJECTDIR
/coverage/.coveragerc
.final
RCFILE
=
$PROJECTDIR
/coverage/.coveragerc
COVERAGEFILE
=
$PROJECTDIR
/coverage/.coverage
# configure the correct folder on the .coveragerc file
cat
$PROJECTDIR
/coverage/.coveragerc |
sed
s+~/teraflow/controller+
$PROJECTDIR
+g
>
$RCFILE
cat
$PROJECTDIR
/coverage/.coveragerc
.template
|
sed
s+~/teraflow/controller+
$PROJECTDIR
+g
>
$RCFILE
# Run unitary tests and analyze coverage of code at same time
...
...
@@ -38,5 +38,3 @@ export REDIS_DATABASE_ID='0'
coverage run
--rcfile
=
$RCFILE
--append
-m
pytest
--log-level
=
INFO
--verbose
\
common/database/tests/test_engine_redis.py
\
tester_integration/test_context_device_service.py
rm
$RCFILE
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment