Skip to content

Commit dab9a5b

Browse files
committed
chore(pytest): Align Hypothesis output for local and CI environments
Updates the pytest configuration to use `--hypothesis-explain` for local development, providing more focused output on test failures. For CI environments, `--hypothesis-show-statistics` is explicitly added to the test script, ensuring that comprehensive statistics are still collected for automated monitoring and analysis.
1 parent 9b7e232 commit dab9a5b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

template/.config/copier/mise-tasks/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ if in-ci; then
3737
--junit-xml='junit.xml' --override-ini junit_family=legacy \
3838
--cov --cov-branch \
3939
--numprocesses "$numprocesses" \
40+
--hypothesis-show-statistics \
4041
"$@"
4142
else
4243
pytest --numprocesses "$numprocesses" "$@"

template/pyproject.toml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ extends = ".config/linters/pyrightconfig.json"
9090
[tool.pytest]
9191
addopts = [
9292
"--doctest-modules",
93-
"--hypothesis-show-statistics",
93+
"--hypothesis-explain",
9494
"--import-mode=importlib",
9595
"--showlocals"
9696
]

0 commit comments

Comments
 (0)