Skip to content
pubscout

very_good_test_runner

0.5.0, released 12 days ago by verygood.ventures

A Dart/Flutter test runner that streams TestEvent objects from dart test or flutter test.

$ flutter pub add very_good_test_runner
Source repository

What it does

It launches a dart test or flutter test process and emits a stream of TestEvent instances that describe test progress, results, and process exit. The events can be consumed by custom tooling or dashboards.

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

Use it when

  • building custom test tooling that needs real-time test events
  • integrating test output into CI dashboards
  • generating coverage reports from test streams

Skip it when

  • running tests from the command line without needing a stream
  • using a standard test runner like flutter test directly

Strengths

  • Provides a clean stream of structured test events
  • Supports both Dart and Flutter test commands
  • Handles stdout/stderr chunks and drains streams on exit

Weaknesses

  • Only useful for tooling that consumes TestEvent streams
  • No built‑in UI or reporting features
  • Requires Dart 3.13+

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
2
import 'package:very_good_test_runner/very_good_test_runner.dart';

void main() {
  const arguments = ['--coverage'];
  const workingDirectory = 'path/to/project';
  dartTest(arguments: arguments, workingDirectory: workingDirectory)
      .listen((event) => print(event));
}

Alternatives

Packages that do the same job and could replace very_good_test_runner.

  • test_api

    Offers lower‑level access to test events and can be used directly in custom test runners

Works with

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