Skip to content

Commit cde1f3d

Browse files
author
Sylvain MARIE
committed
Trying to fix travis issue with pytest coverage
1 parent da3511d commit cde1f3d

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
@@ -16,7 +16,9 @@ if [ "${TRAVIS_PYTHON_VERSION}" = "3.5" ]; then
1616
# full
1717
# Run tests with "python -m pytest" to use the correct version of pytest
1818
echo -e "\n\n****** Running tests ******\n\n"
19-
python -m pytest --junitxml=reports/junit/junit.xml --html=reports/junit/report.html --cov-report term-missing --cov=./pytest_cases -v pytest_cases/tests/
19+
coverage run --source pytest_cases -m pytest --junitxml=reports/junit/junit.xml --html=reports/junit/report.html -v pytest_cases/tests/
20+
# buggy
21+
# python -m pytest --junitxml=reports/junit/junit.xml --html=reports/junit/report.html --cov-report term-missing --cov=./pytest_cases -v pytest_cases/tests/
2022
else
2123
# faster - skip coverage and html report but keep junit (because used in validity threshold)
2224
echo -e "\n\n****** Running tests******\n\n"

0 commit comments

Comments
 (0)