FLUTTER ECOSYSTEM

VeryGoodOpenSource/very_good_test_runner

由 Very Good Ventures 🦄 创建的用于 Flutter 和 Dart 的测试运行器

very_good_test_runner 项目封面
Stars
20
Forks
2
最近推送(UTC)
2026年9月8日
项目状态
未归档
Very Good Open Source GitHub avatar
GITHUB Organization

Very Good Open Source ↗

Open source code from Very Good Ventures (@VGVentures)

New York, NY官方网站 ↗
语言DartShell

技术话题

此仓库发布的插件

使用的依赖

依赖清单 8 项

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

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