Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
EnMAP
GFZ_Tools_EnMAP_BOX
EnPT
Commits
82bfa28b
Commit
82bfa28b
authored
Jan 03, 2022
by
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
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.coveragerc
View file @
82bfa28b
...
...
@@ -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
...
...
Makefile
View file @
82bfa28b
...
...
@@ -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
\
...
...
Daniel Scheffler
@danschef
mentioned in issue
#81 (closed)
·
Jan 03, 2022
mentioned in issue
#81 (closed)
mentioned in issue #81
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment