Skip to content
Snippets Groups Projects
Commit 70de2102 authored by Carlos Natalino Da Silva's avatar Carlos Natalino Da Silva
Browse files

Modifying the test and coverage execution files to accomodate the case where...

Modifying the test and coverage execution files to accomodate the case where the project is located in any folder.
parent 3cf0b0b1
No related branches found
No related tags found
1 merge request!54Release 2.0.0
...@@ -42,6 +42,7 @@ htmlcov/ ...@@ -42,6 +42,7 @@ htmlcov/
.tox/ .tox/
.nox/ .nox/
.coverage .coverage
.coveragerc.final
.coverage.* .coverage.*
.cache .cache
nosetests.xml nosetests.xml
......
#!/bin/bash #!/bin/bash
PROJECTDIR=`pwd`
cd $(dirname $0)/src cd $(dirname $0)/src
RCFILE=~/teraflow/controller/coverage/.coveragerc RCFILE=$PROJECTDIR/controller/coverage/.coveragerc
echo echo
echo "Coverage report:" echo "Coverage report:"
......
#!/bin/bash #!/bin/bash
PROJECTDIR=`pwd`
cd $(dirname $0)/src cd $(dirname $0)/src
RCFILE=~/teraflow/controller/coverage/.coveragerc RCFILE=$PROJECTDIR/coverage/.coveragerc.final
COVERAGEFILE=~/teraflow/controller/coverage/.coverage COVERAGEFILE=$PROJECTDIR/coverage/.coverage
# configure the correct folder on the .coveragerc file
cat $PROJECTDIR/coverage/.coveragerc | sed s+~/teraflow/controller+$PROJECTDIR+g > $RCFILE
# Run unitary tests and analyze coverage of code at same time # Run unitary tests and analyze coverage of code at same time
...@@ -33,3 +38,5 @@ export REDIS_DATABASE_ID='0' ...@@ -33,3 +38,5 @@ export REDIS_DATABASE_ID='0'
coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO --verbose \ coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO --verbose \
common/database/tests/test_engine_redis.py \ common/database/tests/test_engine_redis.py \
tester_integration/test_context_device_service.py tester_integration/test_context_device_service.py
rm $RCFILE
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment