Skip to content

Conversation

@Chemaclass
Copy link
Member

@Chemaclass Chemaclass commented Jan 19, 2026

📚 Description

Add a new --no-progress flag that suppresses real-time progress display during test execution, showing only the final summary. This addresses Issue #503.

When enabled, bashunit hides:

  • Per-test output (pass/fail messages or dots)
  • File headers ("Running tests/...")
  • Hook completion messages
  • Spinner during parallel execution

The final summary with test counts and results is still displayed.

This is useful for:

  • CI/CD pipelines where streaming output causes issues
  • Log-restricted environments
  • Reducing output noise when only the final result matters

🔖 Changes

  • Add --no-progress CLI flag in src/main.sh
  • Add BASHUNIT_NO_PROGRESS environment variable support in src/env.sh
  • Add bashunit::env::is_no_progress_enabled helper function
  • Suppress per-test output in src/state.sh when flag is enabled
  • Suppress file headers in src/runner.sh when flag is enabled
  • Suppress hook completion messages in src/console_results.sh when flag is enabled
  • Suppress spinner in src/runner.sh when flag is enabled
  • Add help text for the new option in src/console_header.sh
  • Add comprehensive acceptance tests in tests/acceptance/bashunit_no_progress_test.sh
  • Update documentation in docs/command-line.md and docs/configuration.md
  • Update CHANGELOG.md with the new feature

✅ 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 added the enhancement New feature or request label Jan 19, 2026
@Chemaclass Chemaclass self-assigned this Jan 19, 2026
@Chemaclass Chemaclass added the enhancement New feature or request label Jan 19, 2026
@Chemaclass Chemaclass changed the title No progress option feat: add --no-progress flag to suppress real-time progress display Jan 19, 2026
@Chemaclass Chemaclass changed the title feat: add --no-progress flag to suppress real-time progress display Add --no-progress flag to suppress real-time progress display Jan 19, 2026
@Chemaclass Chemaclass force-pushed the feat/503-no-progress-option branch from 76094cf to 7c4f18f Compare January 19, 2026 13:13
@Chemaclass Chemaclass enabled auto-merge January 19, 2026 13:13
@Chemaclass Chemaclass merged commit f3aca00 into main Jan 19, 2026
16 checks passed
@Chemaclass Chemaclass deleted the feat/503-no-progress-option branch January 19, 2026 20:22
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.

3 participants