diff --git a/.coveragerc b/.coveragerc index 53d8d93c3c..0e241088a0 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,3 +1,4 @@ [run] source = avocado/, optional_plugins/ concurrency = multiprocessing +parallel = true diff --git a/selftests/run_coverage b/selftests/run_coverage index 7efad79263..89d54c4a52 100755 --- a/selftests/run_coverage +++ b/selftests/run_coverage @@ -15,7 +15,9 @@ echo "Using coverage utility: $COVERAGE" $COVERAGE erase rm -f .coverage.* -$COVERAGE run selftests/check.py --skip=static-checks +echo -e "import coverage\ncoverage.process_startup()" >> sitecustomize.py +env COVERAGE_PROCESS_START=.coveragerc $COVERAGE run selftests/check.py --skip=static-checks +rm -f sitecustomize.py $COVERAGE combine echo $COVERAGE report -m --include "avocado/core/*"