Skip to content

Commit 96cbede

Browse files
test: focus pytest summary on unexpected failures
Use pytest's failure and error summary modes so expected-failure details do not obscure unexpected failures while retaining aggregate counts. Assisted-by: OpenAI Codex Signed-off-by: raisulchowdhury <34920788+raisulchowdhury@users.noreply.github.com>
1 parent 6e61b1d commit 96cbede

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.pytest.ini_options]
6-
addopts = "--cov=git --cov-report=term -ra"
6+
addopts = "--cov=git --cov-report=term -rfE"
77
filterwarnings = "ignore::DeprecationWarning"
88
python_files = "test_*.py"
99
tmp_path_retention_policy = "failed"
@@ -13,7 +13,7 @@ testpaths = "test" # Space separated list of paths from root e.g test tests doc
1313
# --cov-report term-missing # to terminal with line numbers
1414
# --cov-report html:path # html file at path
1515
# --maxfail # number of errors before giving up
16-
# -rfE # default test summary: list fail and error
16+
# -rfE # test summary: list failures and errors, omitting expected failures
1717
# -ra # test summary: list all non-passing (fail, error, skip, xfail, xpass)
1818
# --ignore-glob=**/gitdb/* # ignore glob paths
1919
# filterwarnings ignore::WarningType # ignores those warnings

0 commit comments

Comments
 (0)