Skip to content
pubscout

testreport

2.0.1, released 5 years ago by an unverified publisher

Parses JSON output from the Dart test runner into structured test report objects.

WASM-readySingle maintainer
$ flutter pub add testreport
Source repository

What it does

The testreport package processes JSON event streams produced by the Dart test runner when run with `--reporter json`. It aggregates individual suite, group, and test events into an interpreted Report object. This structured model provides easy programmatic access to test counts, durations, and pass/fail statuses.

AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Building custom CI/CD tooling or dashboards to parse Dart test output.
  • Converting Dart test runner JSON events into structured summaries, badges, or other report formats.

Skip it when

  • You only need standard human-readable terminal output from tests.
  • You are running integration or golden tests inside an application without parsing runner events.

Strengths

  • Zero external dependencies, keeping installations lightweight.
  • Works across all Dart platforms with null safety support.
  • Simplifies aggregating complex streaming test runner JSON events into structured reports.

Weaknesses

  • README lacks concrete Dart code examples showing how to instantiate and call the Processor API.
  • Specialized utility strictly limited to handling Dart test runner JSON output.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0

Alternatives

Packages that do the same job and could replace testreport.

Works with

Packages commonly used together with testreport: ones it builds on, ones built on it, and its own family.