Skip to content

Commit c4d0afd

Browse files
author
Sylvain MARIE
committed
fixed travis pytest-cov issue
1 parent 6ee8c4c commit c4d0afd

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
# full. add the ci_tools/ to path so that the conftest.py is found.
2525
export PATH=${TRAVIS_BUILD_DIR}/ci_tools/:${PATH}
2626
echo $PATH
27-
python -m pytest --junitxml=reports/junit/junit.xml --html=reports/junit/report.html --cov-report term-missing --cov=./mini_lambda -v mini_lambda/tests/
27+
coverage run --source mini_lambda -m pytest --junitxml=reports/junit/junit.xml --html=reports/junit/report.html -v mini_lambda/tests/
28+
# pytest-cov bugs
29+
# python -m pytest --junitxml=reports/junit/junit.xml --html=reports/junit/report.html --cov-report term-missing --cov=./mini_lambda -v mini_lambda/tests/
2830
else
2931
# faster - skip coverage and html report
3032
python -m pytest --junitxml=reports/junit/junit.xml -v mini_lambda/tests/

0 commit comments

Comments
 (0)