[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" 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/*"]