Skip to content
pubscout

better_test_reporter

0.1.1, released 5 years ago by betterment.dev

CLI to convert Dart test JSON output to JUnit XML and provide models

WASM-ready
$ flutter pub add better_test_reporter
Source repository

What it does

It parses the JSON output from Dart's test reporter into developer-friendly models and can generate a JUnit XML report for CI tools. The package also offers a command-line tool to perform this conversion directly from the terminal.

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

Use it when

  • Generating CI-friendly JUnit reports from Dart test runs
  • Parsing test JSON into reusable Dart models for custom reporting
  • Automating test report generation in CI pipelines

Skip it when

  • When you need a fully-featured, production-ready test reporting solution
  • When you only need basic test output without XML conversion

Strengths

  • Single package for parsing and CLI conversion
  • Null-safety and modern Dart support
  • Easy global installation via pub global activate

Weaknesses

  • Experimental status, limited feature set
  • No extensive documentation beyond README
  • No built-in support for non-CI use cases

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
6

pub global activate better_test_reporter

```bash
pub global activate better_test_reporter
report_to_junit --input test_report.json --output report.xml
```

Alternatives

Packages that do the same job and could replace better_test_reporter.

Works with

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