[tests] add coverage and test options
This commit is contained in:
parent
7eea919f94
commit
bc55baf4a6
1 changed files with 15 additions and 4 deletions
|
|
@ -49,12 +49,12 @@ dependencies = [
|
||||||
path = "meanas/__init__.py"
|
path = "meanas/__init__.py"
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
dev = ["pytest", "pdoc", "gridlock"]
|
dev = ["pytest", "coverage", "pdoc", "gridlock"]
|
||||||
examples = [
|
examples = [
|
||||||
"gridlock>=2.1",
|
"gridlock>=2.1",
|
||||||
"matplotlib>=3.10.8",
|
"matplotlib>=3.10.8",
|
||||||
]
|
]
|
||||||
test = ["pytest"]
|
test = ["pytest", "coverage"]
|
||||||
|
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
|
|
@ -100,5 +100,16 @@ module = [
|
||||||
]
|
]
|
||||||
ignore_missing_imports = true
|
ignore_missing_imports = true
|
||||||
|
|
||||||
[tool.uv.sources]
|
#[tool.uv.sources]
|
||||||
gridlock = { path = "../gridlock", editable = true }
|
#gridlock = { path = "../gridlock", editable = true }
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
addopts = "-rsXx"
|
||||||
|
testpaths = ["meanas"]
|
||||||
|
|
||||||
|
[tool.coverage.run]
|
||||||
|
source = ["meanas"]
|
||||||
|
|
||||||
|
[tool.coverage.report]
|
||||||
|
show_missing = true
|
||||||
|
omit = ["meanas/test/*"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue