Use pyproject.toml to maintain coverage options
... to reduce independent config files for test tools. Change-Id: I640f93b3e09f63ed2c941458e2448f073b3495d4 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
1 parent
5ef9029b0d
commit
788d3be861
3 files changed
+15
-10
No files matched your search
@@ -1,8 +0,0 @@
|
||||
[run]
|
||||
branch = True
|
||||
source = oslo_config
|
||||
omit = oslo_config/tests/*
|
||||
|
||||
[report]
|
||||
ignore_errors = True
|
||||
precision = 2
|
||||
@@ -53,6 +53,19 @@ rst-generator = [
|
||||
[tool.setuptools.packages.find]
|
||||
include = ["oslo_config*"]
|
||||
|
||||
[tool.coverage.run]
|
||||
source = [
|
||||
"oslo_config"
|
||||
]
|
||||
branch = true
|
||||
omit = [
|
||||
"oslo_config/tests/*"
|
||||
]
|
||||
|
||||
[tool.coverage.report]
|
||||
ignore_errors = true
|
||||
show_missing = true
|
||||
|
||||
[tool.mypy]
|
||||
python_version = "3.11"
|
||||
show_column_numbers = true
|
||||
|
||||
@@ -42,14 +42,14 @@ commands =
|
||||
|
||||
[testenv:cover]
|
||||
setenv =
|
||||
PYTHON=coverage run --source oslo_config --parallel-mode
|
||||
PYTHON=coverage run --source oslo_config --parallel-mode
|
||||
commands =
|
||||
coverage erase
|
||||
{[testenv]commands}
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
coverage report --show-missing
|
||||
coverage report
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
||||
Reference in new issue
Block a user