very_good_test_runner 0.1.0 copy "very_good_test_runner: ^0.1.0" to clipboard
very_good_test_runner: ^0.1.0 copied to clipboard

outdated

A test runner for Flutter and Dart created by Very Good Ventures

Very Good Test Runner #

Very Good Ventures Very Good Ventures

Developed with 💙 by Very Good Ventures 🦄

ci coverage pub package style: very good analysis License: MIT

A test runner for Flutter and Dart created by Very Good Ventures. This package is intended to be used when writing custom tooling that runs Flutter or Dart tests and exposes a Stream of TestEvent instances. For more information about the various TestEvent types, refer to the JSON Reporter Test Protocol.

Usage #

import 'package:very_good_test_runner/very_good_test_runner.dart';

void main() {
  const arguments = ['--coverage'];
  const workingDirectory = 'path/to/project';

  // Run `dart test` process.
  dartTest(
    arguments: arguments,
    workingDirectory: workingDirectory,
  ).listen((TestEvent event) {
    // React to `TestEvent` instances.
    print(event);
  });

  // Run `flutter test` process.
  flutterTest(
    arguments: arguments,
    workingDirectory: workingDirectory,
  ).listen((TestEvent event) {
    // React to `TestEvent` instances.
    print(event);
  });
}
20
likes
0
pub points
71%
popularity

Publisher

verified publisherverygood.ventures

A test runner for Flutter and Dart created by Very Good Ventures

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

json_annotation, universal_io

More

Packages that depend on very_good_test_runner