Pakete, Repositories und App-Kategorien suchen

Paketdetailsv0.2.0

given_when_then

Ein Flutter-Paket zur Aktivierung von Code-Wiederverwendung, während die Lesbarkeit von Tests verbessert wird.

AndroidiOSmacOSWindowsLinux
30-Tage-Downloads
34
Likes
14
Pub-Punkte
150

Paket installieren

flutter pub add given_when_then

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Ein Flutter-Testpaket, das die Lesbarkeit von Tests verbessert und durch eine strukturierte 'Given-When-Then'-Syntax die Wiederverwendung von Code fördert. Es ermöglicht Entwicklern, Test-Szenarien klar zu definieren, indem sie die Phasen der Einrichtung (Given), Aktion (When) und Erwartung (Then) trennen. Dieser Ansatz verbessert die Wartbarkeit und Klarheit bei Einheitstests und Widget-Tests, besonders bei komplexen oder wiederholten Testfällen. Das Paket ist für Teams konzipiert, die sauberen, ausdrucksstarken Testcode bevorzugen. Es integriert sich nahtlos in bestehende Flutter-Test-Frameworks.

Anwendungsfälle

  • Lesbare Einheitstests schreiben
  • Verbesserung der Klarheit von Widget-Tests
  • Wiederverwendung von Test-Einrichtungslogik
  • Wartbare Test-Suiten erstellen
  • Reduzierung von Boilerplate in Testdateien

Hauptmerkmale

  • Strukturierte Testorganisation nach 'Gegeben-Wenn-Dann'
  • Unterstützung für wiederverwendbare Testschritte
  • Minimale API-Aufwands
  • Kompatibel mit Flutter's Test-Ökosystem
  • Fördert DRY-Testmuster

Geeignet für

  • Testgetriebene Entwicklungsgruppen
  • Großskalige Flutter-Projekte
  • Teams, die sich auf die Wartbarkeit von Tests konzentrieren
  • Entwickler, die komplexe Integrationsprüfungen schreiben
  • Jeder, der sauberen Testcode möchte

Hinweise

  • Erfordert Verständnis für BDD-artige Tests
  • Am besten mit anderen Testwerkzeugen wie Mockito verwenden
  • Kein Ersatz für Kern-Test-Frameworks
  • Beschränkt auf die Nutzung im Testumfeld
  • Kann für neue Benutzer eine leichte Lernkurve hinzufügen

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

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.

Kategorien

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.