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

パッケージ詳細v0.3.2

checks

値を期待と照合し、カスタムの期待を構築するためのフレームワークです。

30日間ダウンロード
14.4万
いいね数
125
Pub ポイント
160

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

flutter pub add checks

パッケージ概要

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

checks パッケージは、値を期待される条件と照合して検証するための Dart フレームワークであり、開発者がカスタムアサーションや検証ロジックを作成できるようにします。再利用可能な期待ルールを定義できる柔軟な基盤を提供し、表現力豊かで読みやすいテストを書くことを可能にします。テストワークフローとの統合を目的としており、単純な値チェックから複雑なドメイン固有の検証まで対応しています。一貫性があり、保守しやすいアサーションパターンが必要なテストスイートでは特に有用です。

用途

  • カスタムテストアサーションの作成
  • ユニットテストでアプリケーション状態を検証する
  • 再利用可能な検証ロジックの構築
  • 表現力ある期待によるテストの読みやすさの向上
  • ドメイン固有のチェック処理の作成

主な機能

  • 拡張可能な期待システム
  • カスタムチェッカー定義のサポート
  • Dartのテストエコシステムとの統合
  • 読みやすくチェーン可能なアサーション構文
  • モジュール型で再利用可能なチェックコンポーネント

適している対象

  • Dart開発者がユニットテストまたは統合テストを書いている
  • テストスイート間で一貫した検証が必要なチーム
  • 再利用可能なテストユーティリティを開発する開発者

注意事項

  • 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

カテゴリー

依存関係

依存関係一覧 3 件

ソースリポジトリ

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

ランキング