Skip to content

Expose the github actions test reporter to flutter test #114860

@devoncarew

Description

@devoncarew

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: tests"flutter test", flutter_test, or one of our testsc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterr: fixedIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions