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.
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.
Works with
Packages commonly used together with very_good_test_runner: ones it builds on, ones built on it, and its own family.
- json_annotationvery_good_test_runner depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- universal_iovery_good_test_runner depends on itCross-platform dart:io implementation with browser support for HttpClient and other APIs
- very_good_analysisSame familyLint rules for Dart and Flutter used internally at Very Good Ventures.
- very_good_infinite_listSame familyEasily display paginated and infinite scrolling lists in Flutter.
- very_good_cliBuilt on very_good_test_runnerCLI for creating and managing Dart/Flutter projects
- test_rocketBuilt on very_good_test_runnerA command-line tool to execute Dart and Flutter tests at high speed.