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.
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.
- very_good_test_runner
A Dart/Flutter test runner that streams TestEvent objects from dart test or flutter test.
88Compare - build_test
Utilities for unit testing Dart build_runner builders in memory
78Compare - flutter_gherkin
Gherkin parser and test runner for Dart and Flutter behavior-driven development.
50Compare
Works with
Packages commonly used together with testreport: ones it builds on, ones built on it, and its own family.