Skip to content
Snippets Groups Projects
Commit 633f281b authored by Frederik Hennig's avatar Frederik Hennig
Browse files

fix coverage data collection: use pytest plugin to collect from subprocesses

parent 599bb5b3
Branches
No related merge requests found
Pipeline #70502 passed with stages
in 52 seconds
......@@ -39,8 +39,7 @@ testsuite:
- pip install "git+https://i10git.cs.fau.de/pycodegen/pystencils.git@v2.0-dev"
- pip install -e .
script:
- coverage run -m pytest -v
- coverage report
- pytest -v
- coverage html
- coverage xml
coverage: '/TOTAL.*\s+(\d+%)$/'
......
......@@ -3,6 +3,6 @@ testpaths = src/pystencilssfg tests/
python_files = "test_*.py"
# Need to ignore the generator scripts, otherwise they would be executed
# during test collection
addopts = --doctest-modules --ignore=tests/generator_scripts/scripts
addopts = --doctest-modules --ignore=tests/generator_scripts/scripts --cov=src/pystencilssfg --cov-report=term
doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment