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

パッケージ詳細v0.2.0

given_when_then

コードの再利用を可能にしながら、テストの読みやすさを向上させるためのFlutterパッケージ。

AndroidiOSmacOSWindowsLinux
30日間ダウンロード
34
いいね数
14
Pub ポイント
150

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

flutter pub add given_when_then

パッケージ概要

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

構造的な 'Given-When-Then' 構文を通じてテストの読みやすさを向上させ、コード再利用を促進するFlutterテストパッケージです。開発者がセットアップ(Given)、アクション(When)、期待(Then)の段階を分けてテストシナリオを明確に定義できるようにします。このアプローチにより、特に複雑または繰り返しのあるテストケースにおいて、ユニットテストやウィジェットテストの保守性と明確性が向上します。クリーンで表現力豊かなテストコードを重視するチーム向けに設計されており、既存のFlutterテストフレームワークとスムーズに統合されます。

用途

  • 読みやすいユニットテストの書き方
  • ウィジェットテストの明確さの向上
  • テストセットアップロジックの再利用
  • 保守可能なテストスイートの作成
  • テストファイル内のボイラープレートの削減

主な機能

  • 構造化された '与えられた-とき-then' テストの組織
  • 再利用可能なテストステップのサポート
  • 最小限のAPIオーバーヘッド
  • Flutterのテストエコシステムと互換性があります
  • DRYテストパターンを促進する

適している対象

  • テスト駆動開発チーム
  • 大規模なFlutterプロジェクト
  • テストの保守性に注力するチーム
  • 複雑な統合テストを書く開発者
  • よりきれいなテストコードを望む人

注意事項

  • BDDスタイルのテストの理解が必要です
  • 他のテストツール(例:mockito)と併用するのが最適です
  • コアテストフレームワークの代替品ではありません
  • テスト環境での利用に限定
  • 新しいユーザーにはやや学習曲線が加わる可能性があります

元の README

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

Flutter Glove Box

This repo is no longer maintained

09/12/2024 Update:

Unfortunately we have made the tough decision to no longer actively maintain this repository. While the package has served us and the community well, we don't have the capacity to give it the attention it deserves.

We realize that this decision means that open pull requests will not be merged. Our hope is that the community will rally and focus their efforts around more actively maintained packages for aiding in golden-based tests.

Once again, we want to thank each and every one of you for your contributions over the years.

Thank you for your understanding.

Best regards,

The eBay Motors App team


Contains various testing tools that eBay Motors App team is using in their development on daily basis.

License Information

Copyright 2019-2023 eBay Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of eBay Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

カテゴリー

ソースリポジトリ

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

データはまだありません。