Commit 82bfa28b authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fix issue #81 (Coverage raises warnings when running in multiprocessing).

parent a80856ed
Pipeline #36617 failed with stages
in 18 minutes and 49 seconds
......@@ -3,7 +3,13 @@
branch = False
concurrency = multiprocessing
parallel = True
omit = */site-packages/*,*/tests/*,*/.eggs/*,*/polymer-*/*
source = enpt
# omit external libs (e.g., polymer causes coverage warnings due to missing pool.join())
# -> NOTE: This requires that --cov=enpt is not set via command-line in the Makefile but via the source parameter above
omit =
*/site-packages/*
*tests/*
*/.eggs/*
[report]
show_missing = True
......
......@@ -87,12 +87,12 @@ pytest: clean-test ## Runs pytest with coverage and creates coverage and test re
## - generates cobertura 'coverage.xml' (needed to show coverage in GitLab MR changes)
## - generates 'report.html' based on pytest-reporter-html1
## - generates JUnit 'report.xml' to show the test report as a new tab in a GitLab MR
## NOTE: additional options pytest and coverage (plugin pytest-cov) are defined in .pytest.ini and .coveragerc
## NOTE: - additional options pytest and coverage (plugin pytest-cov) are defined in .pytest.ini and .coveragerc
## - setting --cov=enpt here would override the source- AND omit-parameter in .coveragerc
pytest tests \
--verbosity=3 \
--color=yes \
--tb=short \
--cov=enpt \
--cov-report html:htmlcov \
--cov-report term-missing \
--cov-report xml:coverage.xml \
......
Markdown is supported
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