Skip to content

Commit ca91fee

Browse files
committed
tests config like omc3
1 parent 2bd11ee commit ca91fee

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,14 @@ changelog = "https://github.com/pylhc/generic_parser/blob/master/CHANGELOG.md"
6767
# ----- Testing ----- #
6868

6969
[tool.pytest.ini_options]
70-
addopts = "--cov-report=xml --cov-report term-missing --cov-config=pyproject.toml --cov=generic_parser"
71-
testpaths = ["tests"]
70+
addopts = [
71+
"--import-mode=importlib",
72+
]
7273

7374
[tool.coverage.run]
74-
source = ["generic_parser/"]
75+
relative_files = true
7576

7677
[tool.coverage.report]
77-
precision = 2
78-
ignore_errors = true
7978
exclude_also = [
8079
"if TYPE_CHECKING:", # do not count if TYPE_CHECKING block imports (ignored at runtime) for coverage
8180
"except ImportError:", # do not count missing optional dependencies set to None, we monkeypatch and test that

0 commit comments

Comments
 (0)