Skip to content

Conversation

Chemaclass
Copy link
Member

📚 Description

Display Only Failing Tests (Quiet Mode) // Idea from @akinomyoga

Goal: Suppress passed tests and show only failures to reduce output noise.

Steps:

  • Introduce a CLI flag: --failures-only or --quiet.
  • When enabled:
    • Suppress all "✓ Passed" lines.
    • Show only failures or summary.
  • Optional: Show a final count of passed/failed/skipped.

Example:

bashunit --failures-only

🔖 Changes

  • Added new CLI flag -q|--failures-only|--quiet to enable quiet mode
  • Documented usage of bashunit --failures-only and its effect in the command-line guide
  • Updated help output to show the quiet mode option
  • Documented BASHUNIT_FAILURES_ONLY environment variable in the configuration guide with an example
  • Implemented quiet mode logic via new env helpers, early return in state::print_line, and display in verbose output

✅ To-do list

  • I updated the CHANGELOG.md to reflect the new feature or fix
  • I updated the documentation to reflect the changes

@Chemaclass Chemaclass self-assigned this Jul 27, 2025
@Chemaclass Chemaclass added the enhancement New feature or request label Jul 27, 2025
@Chemaclass Chemaclass force-pushed the feat/failures-only-mode branch from 4f1697a to 587752f Compare July 27, 2025 16:08
@Chemaclass Chemaclass marked this pull request as draft July 27, 2025 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant