カテゴリー・パッケージ・リポジトリを検索

パッケージ詳細v1.33.0

test

複数のプラットフォームでDartテストを書くおよび実行するための機能豊富なライブラリです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1410万
いいね数
629
Pub ポイント
150

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

flutter pub add test

パッケージ概要

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

テストパッケージは、Android、iOS、Web、macOS、Windows、Linuxなど複数のプラットフォームでDartテストを記述および実行するための包括的なライブラリです。ユニットテスト、インテグレーションテスト、ウィジェットテストに適した豊富なツールセットを提供し、非同期テスト、モック、テストレポートに対応しています。dart.devによって開発され、FlutterおよびDartツールチェーンとシームレスに統合されており、開発者が自動テストワークフローを通じて高いコード品質を維持できるようにします。

用途

  • Dart コードのユニットテスト
  • Flutterアプリの統合テスト
  • Flutter におけるウィジェットテスト
  • クロスプラットフォームテスト実行
  • 自動化されたCI/CDテスト
  • テストでの依存関係のモック化

主な機能

  • async および await テストをサポート
  • 組み込みマッチャーと期待値
  • テストの分離とセットアップ/ティーダウン
  • モックフレームワークの統合
  • 詳細なテストレポート
  • クロスプラットフォーム互換性

適している対象

  • Flutter開発者
  • Dart ライブラリの作成者
  • CI/CDパイプライン統合者
  • テスト駆動開発を実践するチーム
  • QAエンジニアがテストスイートを自動化しています

注意事項

  • 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

カテゴリー

依存関係

依存関係一覧 25 件

ソースリポジトリ

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