Skip to content

Conversation

@mavam
Copy link
Member

@mavam mavam commented Jan 23, 2026

Summary

A new --verbose / -v flag makes detailed per-test output opt-in. The new default (quiet mode) only shows failures and a compact summary, significantly reducing noise for large test suites.

Behavior

Mode Passing tests Skipped tests Failed tests Tree summary
Quiet (default) Hidden Hidden Shown Hidden
Verbose (-v) Shown Shown Shown Shown (with --summary)
  • Passthrough mode (-p) automatically enables verbose output to preserve output ordering.

Files Modified

Production code:

  • src/tenzir_test/run.py - Added VERBOSE_OUTPUT global state, set_verbose_output() and is_verbose_output() functions, modified success() and handle_skip() to check verbose mode, updated summary logic, added verbose parameter to run_cli() and execute()
  • src/tenzir_test/cli.py - Added -v/--verbose CLI flag

Tests:

  • tests/test_run.py - Updated test_handle_skip_uses_skip_glyph and test_success_includes_suite_suffix to enable verbose mode for testing

Test Coverage

All 126 tests pass.

Related

🤖 Generated with Claude Code

The new --verbose/-v flag makes detailed per-test output opt-in. By
default, quiet mode only shows failures and a compact summary,
significantly reducing noise for large test suites. Passthrough mode
automatically enables verbose output to preserve output ordering.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
mavam and others added 2 commits January 23, 2026 10:05
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add docstrings and help text explaining that verbose mode controls both
pass/skip output while failures always print. Clarify that verbose is
automatically enabled in passthrough mode. Update help text to show that
by default only failures are displayed.

Replace direct access to VERBOSE_OUTPUT module variable with is_verbose_output()
getter in tests. Add two new test cases verifying that success and skip
messages are suppressed when verbose mode is disabled.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mavam mavam merged commit f34303d into main Jan 23, 2026
6 checks passed
@mavam mavam deleted the topic/add-verbose-flag branch January 23, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants