搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案