搜索插件、代码仓与 APP 分类

插件详情v0.4.0

very_good_test_runner

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

AndroidiOSmacOSWindowsLinux
近 30 天下载
33.7万
喜欢数
23
Pub 分数
160

安装插件

flutter pub add very_good_test_runner

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

由 Very Good Ventures 开发的 Flutter 和 Dart 测试运行器,旨在简化跨多个平台的测试工作流程。它通过改进的输出格式、更快的反馈循环以及与 CI/CD 流水线更好的集成来提升测试执行效率。该工具支持 Android、iOS、macOS、Windows 和 Linux,非常适合跨平台项目。以开发者体验为核心设计,只需最少配置即可轻松运行单元测试、Widget 测试和集成测试。其轻量级特性和清晰的报告帮助团队保持高测试覆盖率和可靠性。

适合场景

  • 在 CI/CD 流水线中运行单元测试
  • 在本地执行小部件和集成测试
  • 提高测试输出的可读性
  • 支持跨平台测试
  • 在开发工作流中自动化测试执行

主要特点

  • 快速测试执行
  • 清晰且结构化的测试输出
  • 跨平台支持
  • 所需设置最少
  • 与 Flutter 项目的无缝集成

适合对象

  • 寻求高效测试的Flutter开发者
  • 使用 CI/CD 进行自动化测试的团队
  • 需要一致测试报告的项目
  • 开发者专注于测试可靠性
  • 开源贡献者正在开发Flutter应用

使用建议

  • 需要 Flutter SDK 设置
  • 复杂测试环境可能需要额外配置
  • 最好与其他测试工具配合使用
  • 与原始测试运行器相比,自定义选项有限
  • 依赖于 Very Good Ventures 生态系统

原始 README

以下为关联源码仓库的 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);
  });
}

所属分类

依赖

依赖清单 2 项

源码仓库

使用此插件的项目