Add pytest config sections and vars
This commit is contained in:
1 parent
fd18bcba1b
commit
909d1ad55b
1 file changed
+12
@@ -21,7 +21,19 @@ dev = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
|
addopts = "--cov=Lottery_Project --cov-report=html --cov-report=term-missing"
|
||||||
filterwarnings = [
|
filterwarnings = [
|
||||||
"ignore::ResourceWarning",
|
"ignore::ResourceWarning",
|
||||||
|
"ignore:RuntimeWarning",
|
||||||
"ignore::pytest.PytestUnraisableExceptionWarning",
|
"ignore::pytest.PytestUnraisableExceptionWarning",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tool.coverage.run]
|
||||||
|
omit = [
|
||||||
|
"tests/*",
|
||||||
|
"*/__init__.py",
|
||||||
|
]
|
||||||
|
|
||||||
|
[tool.coverage.report]
|
||||||
|
fail_under=90
|
||||||
|
show_missing=true
|
||||||
Reference in new issue
Block a user