[tests] add coverage and test options

This commit is contained in:
Jan Petykiewicz 2026-04-17 19:38:55 -07:00
commit bc55baf4a6

View file

@ -49,12 +49,12 @@ dependencies = [
path = "meanas/__init__.py"
[project.optional-dependencies]
dev = ["pytest", "pdoc", "gridlock"]
dev = ["pytest", "coverage", "pdoc", "gridlock"]
examples = [
"gridlock>=2.1",
"matplotlib>=3.10.8",
]
test = ["pytest"]
test = ["pytest", "coverage"]
[tool.ruff]
@ -100,5 +100,16 @@ module = [
]
ignore_missing_imports = true
[tool.uv.sources]
gridlock = { path = "../gridlock", editable = true }
#[tool.uv.sources]
#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/*"]