Skip to content

[Feature]: Environment variable support for --disable-logo and --no-progress flags #4574

@timwkosatec

Description

@timwkosatec

Problem Statement

Current behavior: The --disable-logo and --no-progress flags must be passed on every command-line invocation
when running the test executable directly. There's no way to set these as defaults via environment variables.

Desired behavior: Environment variables like TUNIT_DISABLE_LOGO=true and TUNIT_NO_PROGRESS=true that apply
these flags automatically, following the existing pattern of TUNIT_GITHUB_REPORTER_STYLE and
TUNIT_DISABLE_GITHUB_REPORTER.

Proposed Solution

Add environment variable support:

  • TUNIT_DISABLE_LOGO=true → equivalent to --disable-logo
  • TUNIT_NO_PROGRESS=true → equivalent to --no-progress

Alternatives Considered

  • TestingPlatformCommandLineArguments MSBuild property - only works with dotnet test, not direct .exe execution
  • Shell aliases - not portable across environments

Feature Category

Test Execution / Lifecycle

How important is this feature to you?

Nice to have - would improve my experience

Additional Context

Why This Benefits Most Users

  1. AI/LLM coding assistants (Claude Code, Copilot, Cursor) run tests and parse output - the ASCII banner wastes
    tokens and adds noise
  2. CI/CD pipelines can set env vars globally instead of modifying every test command
  3. Consistency with existing TUnit env var patterns (TUNIT_*)

Additional Context

Similar pattern exists in other tools (e.g., DOTNET_NOLOGO, NO_COLOR).

Contribution

  • I'm willing to submit a pull request for this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions