Skip to content

Commit 5eb8f2e

Browse files
committed
add pytest html reports
1 parent f1222d6 commit 5eb8f2e

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ coverage.xml
5050
.hypothesis/
5151
.pytest_cache/
5252
cover/
53+
reports/
5354

5455
# Translations
5556
*.mo
@@ -150,3 +151,4 @@ cython_debug/
150151
# and can be added to the global gitignore or merged into this file. For a more nuclear
151152
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
152153
.idea/
154+
poetry.lock

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ pytest = "^8.3.5"
1212

1313
[tool.poetry.group.dev.dependencies]
1414
ruff = "^0.14.10"
15+
pytest-html = "^4.1.1"
1516

1617
[build-system]
1718
requires = ["poetry-core"]
1819
build-backend = "poetry.core.masonry.api"
20+
21+
[tool.pytest.ini_options]
22+
addopts = """-v --cov=src --cov-report=term-missing --cov-report=html:reports/coverage --html=reports/report.html --self-contained-html"""
23+
testpaths = ["tests"]
24+

0 commit comments

Comments
 (0)