very_good_test_runner 0.1.2 icon indicating copy to clipboard operation
very_good_test_runner: ^0.1.2 copied to clipboard

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

Very Good Test Runner #

Very Good Ventures

Developed with 💙 by Very Good Ventures 🦄

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

This package is a test runner for Flutter and Dart created by Very Good Ventures. It 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);
  });
}
14
likes
130
pub points
78%
popularity

Publisher

verified publisher iconverygood.ventures

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

json_annotation, universal_io

More

Packages that depend on very_good_test_runner