Skip to content

Commit c9b45f0

Browse files
authored
ci: configure pytest (#24)
1 parent 3f859a3 commit c9b45f0

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,18 @@ test = [
3232
requires = ["hatchling"]
3333
build-backend = "hatchling.build"
3434

35+
[tool.pytest.ini_options]
36+
minversion = "8.0"
37+
# -ra: Report all extra test outcomes (passed, skipped, failed, etc.)
38+
# -q: Enable quiet mode for less cluttered output
39+
# -v: Enable verbose output to display detailed test names and statuses
40+
# --durations=5: Show the 10 slowest tests after the run (useful for performance tuning)
41+
addopts = "-ra -q -v --durations=5"
42+
testpaths = [
43+
"tests",
44+
]
45+
python_files = ["test_*.py"]
46+
python_functions = ["test_*"]
47+
asyncio_mode = "auto"
48+
asyncio_default_fixture_loop_scope = "function"
49+

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)