From 96cbede92eb8ba0661774874766c2e9a382cb1b8 Mon Sep 17 00:00:00 2001 From: raisulchowdhury <34920788+raisulchowdhury@users.noreply.github.com> Date: Fri, 31 Jul 2026 22:09:17 -0700 Subject: [PATCH 1/2] 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> --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 117f044d6..2a073a24b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools"] build-backend = "setuptools.build_meta" [tool.pytest.ini_options] -addopts = "--cov=git --cov-report=term -ra" +addopts = "--cov=git --cov-report=term -rfE" filterwarnings = "ignore::DeprecationWarning" python_files = "test_*.py" tmp_path_retention_policy = "failed" @@ -13,7 +13,7 @@ testpaths = "test" # Space separated list of paths from root e.g test tests doc # --cov-report term-missing # to terminal with line numbers # --cov-report html:path # html file at path # --maxfail # number of errors before giving up -# -rfE # default test summary: list fail and error +# -rfE # test summary: list failures and errors, omitting expected failures # -ra # test summary: list all non-passing (fail, error, skip, xfail, xpass) # --ignore-glob=**/gitdb/* # ignore glob paths # filterwarnings ignore::WarningType # ignores those warnings From 1d246f022fa2b67c1784925a1fd9d1a898b0f9ce Mon Sep 17 00:00:00 2001 From: raisulchowdhury <34920788+raisulchowdhury@users.noreply.github.com> Date: Sat, 1 Aug 2026 07:42:39 -0700 Subject: [PATCH 2/2] fix: keep unexpected passes in pytest summary Include XPASS results while still omitting expected-failure detail, and document the exact report flags.\n\nAssisted-by: OpenAI Codex Signed-off-by: raisulchowdhury <34920788+raisulchowdhury@users.noreply.github.com> --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2a073a24b..b7c437bf3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools"] build-backend = "setuptools.build_meta" [tool.pytest.ini_options] -addopts = "--cov=git --cov-report=term -rfE" +addopts = "--cov=git --cov-report=term -rfEX" filterwarnings = "ignore::DeprecationWarning" python_files = "test_*.py" tmp_path_retention_policy = "failed" @@ -13,7 +13,7 @@ testpaths = "test" # Space separated list of paths from root e.g test tests doc # --cov-report term-missing # to terminal with line numbers # --cov-report html:path # html file at path # --maxfail # number of errors before giving up -# -rfE # test summary: list failures and errors, omitting expected failures +# -rfEX # test summary: list failures, errors, and unexpected passes; omit expected failures # -ra # test summary: list all non-passing (fail, error, skip, xfail, xpass) # --ignore-glob=**/gitdb/* # ignore glob paths # filterwarnings ignore::WarningType # ignores those warnings