Skip to content

Support DART_TEST_REPORTER environment variable - #2692

Merged
natebosch merged 2 commits into
masterfrom
reporter-env-var
Jul 8, 2026
Merged

Support DART_TEST_REPORTER environment variable#2692
natebosch merged 2 commits into
masterfrom
reporter-env-var

Conversation

@natebosch

Copy link
Copy Markdown
Member

Allow configuring the test reporter using the DART_TEST_REPORTER
environment variable.

This variable is honored by:

  • Test suites run directly (when dart:io is available).
  • The test runner (when --reporter CLI flag is not used).

The order of precedence for the test runner is:

  1. dart_test.yaml
  2. DART_TEST_REPORTER environment variable
  3. --reporter CLI argument (highest priority)

TAG=agy
CONV=bc215ee6-37c5-4708-b470-be096f4accb4

Allow configuring the test reporter using the `DART_TEST_REPORTER`
environment variable.

This variable is honored by:
- Test suites run directly (when `dart:io` is available).
- The test runner (when `--reporter` CLI flag is not used).

The order of precedence for the test runner is:
1. `dart_test.yaml`
2. `DART_TEST_REPORTER` environment variable
3. `--reporter` CLI argument (highest priority)

TAG=agy
CONV=bc215ee6-37c5-4708-b470-be096f4accb4
@natebosch
natebosch requested a review from a team as a code owner July 7, 2026 22:13
@natebosch
natebosch requested a review from jakemac53 July 7, 2026 22:13
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

This check can be disabled by tagging the PR with skip-changelog-check.

@natebosch
natebosch merged commit 91ca13f into master Jul 8, 2026
23 checks passed
@natebosch
natebosch deleted the reporter-env-var branch July 8, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants