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

パッケージ詳細v2.0.2

test_descriptor

ファイルおよびディレクトリ構造を定義および検証するための API。

AndroidiOSmacOSWindowsLinux
30日間ダウンロード
22.4万
いいね数
4
Pub ポイント
160

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

flutter pub add test_descriptor

パッケージ概要

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

test_descriptor は、テスト中にファイルおよびディレクトリ構造の作成と検証を簡素化するためのDartパッケージです。期待されるファイルレイアウトを定義するための明確で表現力豊かなAPIを提供し、テストフィクスチャのセットアップやファイルシステム状態の検証が簡単になります。ファイル操作を含む統合テストやエンドツーエンドテストに最適であり、複雑なディレクトリ階層を扱う際に一貫性を保ちつつボイラープレートコードを削減します。このパッケージはDartチームによってメンテナンスされており、テストフレームワークとシームレスに統合されています。

用途

  • ファイルシステムのインタラクションをテストする
  • テスト用の固定具を設定する
  • ディレクトリ構造の検証
  • 生成されたファイルの検証
  • ファイル I/O を用いた統合テスト
  • 自動テストセットアップ

主な機能

  • 宣言型ファイル構造定義
  • 組み込み検証ユーティリティ
  • ネストされたディレクトリをサポート
  • 読みやすく、保守しやすい
  • test パッケージと連携可能
  • クロスプラットフォーム互換性

適している対象

  • ユニットテストと統合テスト
  • ファイルベースのツールテスト
  • コード生成検証
  • CI/CD パイプラインテスト
  • Dartパッケージ開発
  • テストフィクスチャ管理

注意事項

  • テストパッケージへの依存関係が必要です
  • 実行時での使用を想定していません
  • テスト環境のみに限定
  • 過剰に使用すると、テストスイートの複雑さが増す可能性があります
  • 他のテストユーティリティと併用するのが最適です
  • ファイルの内容の差分を直接処理しない

元の 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

カテゴリー

依存関係

依存関係一覧 5 件

ソースリポジトリ

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