Skip to content

terminal: add --name-only option to show only names of failed tests#14451

Open
Vlor999 wants to merge 3 commits intopytest-dev:mainfrom
Vlor999:main
Open

terminal: add --name-only option to show only names of failed tests#14451
Vlor999 wants to merge 3 commits intopytest-dev:mainfrom
Vlor999:main

Conversation

@Vlor999
Copy link
Copy Markdown

@Vlor999 Vlor999 commented May 9, 2026

Issue : #14452

Add a new CLI argument --name-only that displays only the test name or collection error headline when a test fails. This is useful for quickly identifying failures in large test suites without the noise of full tracebacks or capture sections.

  • Register --name-only in pytest_addoption.
  • Modify summary_failures_combined and summary_errors to honor the flag.
  • Add documentation in doc/en/reference/reference.rst.
  • Add regression tests in testing/test_name_only.py.
  • Add news fragment in changelog/14443.feature.rst.
  • Update AUTHORS.

  • Include documentation when adding new features.
  • Include new tests or update existing tests when applicable.
  • Allow maintainers to push and squash when merging my commits.

Vlor999 and others added 2 commits May 9, 2026 11:29
Add a new CLI argument --name-only that displays only the test name
or collection error headline when a test fails. This is useful for
quickly identifying failures in large test suites without the noise
of full tracebacks or capture sections.

- Register --name-only in pytest_addoption.
- Modify summary_failures_combined and summary_errors to honor the flag.
- Add regression tests in testing/test_name_only.py.
Co-authored-by: Gemini CLI <gemini-cli@google.com>
@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant