VeryGoodOpenSource / very_good_test_runner

A test runner for Flutter and Dart created by Very Good Ventures πŸ¦„

Home Page:https://pub.dev/packages/very_good_test_runner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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);
  });
}

About

A test runner for Flutter and Dart created by Very Good Ventures πŸ¦„

https://pub.dev/packages/very_good_test_runner

License:MIT License


Languages

Language:Dart 95.3%Language:Shell 4.7%