パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v2.1.1

test_process

テストプロセス:開始;stdout および stderr の検証;終了コードの確認

AndroidiOSmacOSWindowsLinux
30日間ダウンロード
11.2万
いいね数
12
Pub ポイント
70

パッケージをインストール

flutter pub add test_process

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

test_process パッケージは、Dart アプリケーションにおけるコマンドラインプロセスのテストに役立つユーティリティを提供します。開発者は外部プロセスを起動し、その stdout および stderr の出力をキャプチャして、終了コードを検証できるようになります。これにより、CLI ツールの統合テストやエンドツーエンドテストに最適です。このパッケージは Dart のテストフレームワークとシームレスに連携するように設計されており、複数のプラットフォームで信頼性の高いプロセス管理を実現します。Android、iOS、macOS、Windows、Linux でのクロスプラットフォームテストをサポートしており、さまざまな環境で一貫した動作を保証します。

用途

  • CLIツールの動作をテストする
  • プロセス出力の検証
  • 終了コードの確認
  • クロスプラットフォーム統合テスト
  • テストにおける自動コマンド実行

主な機能

  • 外部プロセスの起動と管理
  • stdout と stderr をキャプチャする
  • 終了コードを確認する
  • クロスプラットフォーム互換性
  • Dart のテストフレームワークとの統合

適している対象

  • CLI アプリケーション開発者
  • テスト自動化エンジニア
  • クロスプラットフォームテスト
  • シェルコマンドのエンドツーエンドテスト
  • test パッケージを使用する Dart プロジェクト

注意事項

  • Dart テストフレームワークが必要です
  • プロセスレベルのテストに限定
  • GUIインタラクションのサポートなし
  • プラットフォーム固有のコマンドの利用可能性に依存
  • 長期実行またはインタラクティブなプロセスには適していません

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Dart CI OpenSSF Scorecard

What's here?

Welcome! package:test is the standard testing library for Dart and Flutter. If you have questions about Dart testing, please see the docs for package:test. package:test_api and package:test_core are implementation details and generally not user-facing.

package:checks is a relatively new library for expressing test expectations. It's a more modern version of package:matcher and features a literate API.

Packages

Package Description Issues Version
checks A framework for checking values against expectations and building custom expectations. issues pub package
fake_async Fake asynchronous events such as timers and microtasks for deterministic testing. issues pub package
matcher Support for specifying test expectations via an extensible Matcher class. Also includes a number of built-in Matcher implementations for common cases. issues pub package
test A full featured library for writing and running Dart tests across platforms. issues pub package
test_api The user facing API for structuring Dart tests and checking expectations. pub package
test_core A basic library for writing tests and running them on the VM. pub package
test_descriptor An API for defining and verifying files and directory structures. issues pub package
test_process Test processes: starting; validating stdout and stderr; checking exit code. issues pub package

カテゴリー

依存関係

依存関係一覧 4 件

ソースリポジトリ

このパッケージを使用しているプロジェクト