-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Description
Use case
I'd like to take advantage of the improved github actions output of package:test.
The proposal is to add support for the github test reporter to flutter test. Specifically, adding support for flutter test --reporter=github (to mirror the existing dart test --reporter=github).
Proposal
Here's the current flutter test -h output:
-r, --reporter Set how to print test results.
[compact] (default) A single line that updates dynamically.
[expanded] A separate line for each update. May be preferred when logging to a file or in continuous
integration.
[json] A machine-readable format. See: https://dart.dev/go/test-docs/json_reporter.md
And the current dart test -h output:
-r, --reporter=<option> Set how to print test results.
[compact] (default) A single line, updated continuously.
[expanded] A separate line for each update.
[github] A custom reporter for GitHub Actions (the default reporter when running on GitHub Actions).
[json] A machine-readable format (see https://dart.dev/go/test-docs/json_reporter.md).
Note that flutter test is missing the github output reporter. Additionally, when run in a github actions context, the github reporter is selected as the default (you can override this if you want to select a different reporter).
--
Separately from this issue, it would be useful to think about ways to reduce drift in the dart test and flutter test commands (note that the verbiage for the command line help has drifted).