Use .coveragerc

Change-Id: I923d7a84f4df178bda4626e25cb067c16f26aa43
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2026-07-12 14:27:38 +09:00
parent e08a033278
commit 6c2419ae9f
3 changed files with 11 additions and 5 deletions
+7
View File
@@ -0,0 +1,7 @@
[run]
branch = True
source = wsme,wsmeext
omit = wsme/tests/*
[report]
ignore_errors = True
+1 -1
View File
@@ -5,7 +5,7 @@
*.orig
~*
*~
.coverage*
.coverage
coverage*.xml
.noseids
.tox
+3 -4
View File
@@ -11,10 +11,9 @@ commands =
[testenv:coverage]
commands =
coverage erase
pytest --cov=wsme --cov=wsme_ext wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py
coverage combine
coverage xml --include="wsme/*.py","wsme/rest/*.py","wsmeext/*.py" --omit "wsme/tests/*"
coverage report --show-missing --include="wsme/*.py","wsme/rest/*.py","wsmeext/*.py" --omit "wsme/tests/*"
pytest --cov=wsme --cov=wsmeext wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py
coverage xml
coverage report --show-missing
[testenv:docs]
allowlist_externals =