Skip to content

Commit 0b171e3

Browse files
author
Sylvain MARIE
committed
Travis will now execute the doctests. Fixed the setup.cfg to take into account the new name for typing_inspect
1 parent 3af298e commit 0b171e3

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

ci_tools/run_tests.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ trap "cleanup" INT TERM EXIT
2222
echo -e "\n\n****** Running tests ******\n\n"
2323
if [ "${TRAVIS_PYTHON_VERSION}" = "3.5" ]; then
2424
# copy the conftest.py file before executing.
25-
# cp ci_tools/conftest.py valid8/tests/
25+
# cp ci_tools/conftest.py valid8/
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.
2727

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/
28+
coverage run --source valid8 -m pytest --junitxml=reports/junit/junit.xml --html=reports/junit/report.html -v valid8/
29+
# python -m pytest --junitxml=reports/junit/junit.xml --html=reports/junit/report.html --cov-report term-missing --cov=./valid8 -v valid8/
3030
else
3131
# faster - skip coverage and html report
32-
python -m pytest --junitxml=reports/junit/junit.xml -v valid8/tests/
33-
fi
32+
python -m pytest --junitxml=reports/junit/junit.xml -v valid8/
33+
fi

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ test=pytest
1919

2020
[tool:pytest]
2121
norecursedirs=tests/helpers
22-
addopts = --verbose --doctest-modules --ignore-glob='**/_*.py' --ignore=_typing_inspect.py
22+
addopts = --verbose --doctest-modules --ignore-glob='**/_*.py' --ignore=utils/typing_inspect.py
2323
doctest_optionflags= NORMALIZE_WHITESPACE ELLIPSIS
2424
testpaths = valid8

0 commit comments

Comments
 (0)