Skip to content

Flutter SDK tests using package:test should log out a summary of results #114548

@christopherfujino

Description

@christopherfujino

I'm thinking of a design roughly like:

  1. within test.dart, run the dart test runner with --reporter=json
  2. parse the JSON output
  3. print useful data to STDOUT
  4. at the end of the dart test runner invocation, print a JSON blob with a digest:
    a. all test files that were run
    b. all individual tests that were run, including the result
  5. from recipe, POST these results back to Cocoon
  6. if we are in a pre-submit context, comment the failures to the PR
  7. if we are in a post-submit context, write the results to datastore

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: tests"flutter test", flutter_test, or one of our testsc: contributor-productivityTeam-specific productivity, code health, technical debt.team-infraOwned by Infrastructure teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-infraTriaged by Infrastructure team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions