[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"
|
||||
|
||||
[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/*"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue