Skip to content

Conversation

@drewburlingame
Copy link
Collaborator

@drewburlingame drewburlingame commented Nov 20, 2025

  • Fix AnsiTestConsole.AllText() and OutText() to properly separate stdout/stderr

    • AllText() now combines Spectre output (stdout) with base.ErrorText() (stderr)
    • OutText() returns only stdout from SpectreTestConsole to avoid duplication
    • Added detailed XML docs explaining output capture architecture
  • Add ToString() override to DuplexTextWriter

    • Delegates to Listener writer for proper output retrieval in tests
    • Added comprehensive XML documentation
  • Enhance AnsiConsoleForwardingConsole documentation

    • Document production vs testing usage scenarios
    • Explain internal constructor purpose for test capture
  • Add comprehensive test coverage for AnsiTestConsole

    • Test DuplexTextWriter.ToString() behavior
    • Test IAnsiConsole and Console.Out output capture
    • Test Spectre markup rendering (plain text and ANSI codes)
    • Test mixed Console and Spectre output scenarios

- Fix AnsiTestConsole.AllText() and OutText() to properly separate stdout/stderr
  - AllText() now combines Spectre output (stdout) with base.ErrorText() (stderr)
  - OutText() returns only stdout from SpectreTestConsole to avoid duplication
  - Added detailed XML docs explaining output capture architecture

- Add ToString() override to DuplexTextWriter
  - Delegates to Listener writer for proper output retrieval in tests
  - Added comprehensive XML documentation

- Enhance AnsiConsoleForwardingConsole documentation
  - Document production vs testing usage scenarios
  - Explain internal constructor purpose for test capture

- Add comprehensive test coverage for AnsiTestConsole
  - Test DuplexTextWriter.ToString() behavior
  - Test IAnsiConsole and Console.Out output capture
  - Test Spectre markup rendering (plain text and ANSI codes)
  - Test mixed Console and Spectre output scenarios
@drewburlingame drewburlingame merged commit 4e7503b into master Nov 20, 2025
8 checks passed
@drewburlingame drewburlingame deleted the fix-spectre-test-tools branch November 20, 2025 09:53
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