Skip to content

Commit 696f1a4

Browse files
author
Sylvain MARIE
committed
Fixed issue with the coverage plugin for pytest.
1 parent 9a04691 commit 696f1a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci_tools/run_tests.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ if [ "${TRAVIS_PYTHON_VERSION}" = "3.5" ]; then
2424
# copy the conftest.py file before executing.
2525
# cp ci_tools/conftest.py valid8/tests/
2626
# Note: an alternative could be to add ci_tools/ at the end of the below command but not sure it will be applied on all tests.
27-
python -m pytest --junitxml=reports/junit/junit.xml --html=reports/junit/report.html --cov-report term-missing --cov=./valid8 -v valid8/tests/
27+
28+
coverage run --source valid8 -m pytest --junitxml=reports/junit/junit.xml --html=reports/junit/report.html -v valid8/tests/
29+
# python -m pytest --junitxml=reports/junit/junit.xml --html=reports/junit/report.html --cov-report term-missing --cov=./valid8 -v valid8/tests/
2830
else
2931
# faster - skip coverage and html report
3032
python -m pytest --junitxml=reports/junit/junit.xml -v valid8/tests/

0 commit comments

Comments
 (0)