Integrate pytest coverage configuration
This commit is contained in:
20
pyproject.toml
Normal file
20
pyproject.toml
Normal file
@@ -0,0 +1,20 @@
|
||||
[tool.pytest.ini_options]
|
||||
addopts = "-q --cov=addon --cov-report=term-missing"
|
||||
python_files = ["test_*.py"]
|
||||
norecursedirs = ["scripts"]
|
||||
markers = [
|
||||
"live: real HTTP requests (set LIVE_TESTS=1 to run)",
|
||||
"perf: performance benchmarks",
|
||||
]
|
||||
|
||||
[tool.coverage.run]
|
||||
source = ["addon"]
|
||||
branch = true
|
||||
omit = [
|
||||
"*/__pycache__/*",
|
||||
"addon/resources/*",
|
||||
]
|
||||
|
||||
[tool.coverage.report]
|
||||
show_missing = true
|
||||
skip_empty = true
|
||||
Reference in New Issue
Block a user