Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

flutter-testing

/flutter-testing

Projektuje, pisze i przegląda testy jednostkowe, widgetów, golden i integracyjne we Flutterze: strategia testów, regresje, fake'i, asynchroniczny UI i przepływy end-to-end.

Repozytorium
flutter-skills ↗
Licencja
BSD-3-Clause
Ostatnia zmiana repozytorium
05.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
4
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
3
Przestarzałość

Brak sygnałów. Repozytorium zmienione 05.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

BSD-3-Clause, otwarta.

Co robi i kiedy

Projektuje, pisze i przegląda testy jednostkowe, widgetów, golden i integracyjne we Flutterze: strategia testów, regresje, fake'i, asynchroniczny UI i przepływy end-to-end.

Oryginalny opis (EN)

Design, write, or review Flutter unit, widget, golden, and integration tests. Use for test strategy, regressions, fakes, async UI behavior, and end-to-end flows; use device testing for operational emulator or hardware control.

Jak działa

  1. Choose the layer
  2. Reliability
  3. Disposable test probes
  4. Verification
  5. Sources
Sekcje z nagłówków SKILL.md, w oryginale · 49 linii, 511 słów
Podgląd SKILL.md
---
name: flutter-testing
description: Design, write, or review Flutter unit, widget, golden, and integration tests. Use for test strategy, regressions, fakes, async UI behavior, and end-to-end flows; use device testing for operational emulator or hardware control.
---

# Flutter Testing

Test observable behavior at the cheapest layer that provides confidence.

## Choose the layer

- Unit tests: pure logic, state transitions, repositories, parsing, and failure policy.
- Widget tests: rendering, semantics, interaction, focus, navigation wiring, and state-to-UI behavior.
- Golden tests: stable visual contracts where platform/font control makes comparison meaningful.
- Integration tests: critical flows, plugin integration, performance, and behavior requiring a real target.

Do not replace behavior assertions with implementation details such as private method calls or exact widget-tree shape.

## Reliability

- Inject clocks, randomness, storage, and transports when determinism matters.
- Prefer small fakes over large mock graphs; verify outputs and side effects rather than incidental calls.
- Control async progress with the test framework; avoid arbitrary sleeps.
- Pump until a known state or bounded completion, not an unbounded `pumpAndSettle` when animations or timers persist.
- Give tests independent data and clean up global bindings, files, databases, and subscriptions.
- Update a golden only after reviewing the rendered difference.

## Disposable test probes

Classify each new test before creating it. Keep regression, acceptance, and specification tests as normal project files. A passing test is not a reason to delete it.

For a one-off diagnostic probe that should not be committed:

- Prefer an isolated temporary project or directory outside the repository when the runner permits it.
- If the probe must live under `test/` or `integration_test/`, choose one explicit unique path, record whether it existed or was tracked before creation, refuse to overwrite it, and mark the file as generated and disposable.
- Register host-side cleanup as soon as the path is created so it runs after success or failure. Preserve the test exit status and useful output before cleanup.
- Delete only artifacts created by the current run. Never recursively delete a test directory, use a broad glob, or delete pre-existing or tracked tests as routine cleanup.
- Confirm the recorded paths no longer exist and compare scoped `git status` with the pre-run state before reporting completion or preparing a commit. If execution was interrupted, inspect again rather than assuming cleanup ran.

Use test-framework teardown such as `addTearDown` for runtime files, databases, bindings, and subscriptions created inside a test. It does not replace host-side removal of an ephemeral Dart source file. If a probe exposes a reproducible defect, prefer converting it into a durable regression test unless the user explicitly wants only transient evidence.

Load [test layers and doubles](references/test-layers-and-doubles.md) when choosing boundaries, fakes, plugin seams, or native-UI coverage. Load [determinism, goldens, integration, and cleanup](references/determinism-goldens-and-integration.md) for async flakiness, visual contracts, device flows, or disposable test artifacts.

## Verification

Use the Dart and Flutter MCP test capability when available or the repository's established test command otherwise. Run the narrow test during iteration, then the relevant suite. Report the execution surface and data source independently—for example, a widget test with a fixture or an iOS simulator calling staging. Report skipped platforms, flaky behavior, or environment dependencies instead of treating them as success.

## Sources

- [Flutter testing](https://docs.flutter.dev/testing)
- [Integration testing](https://docs.flutter.dev/cookbook/testing/integration/introduction)
- [Dart and Flutter MCP server](https://docs.flutter.dev/ai/mcp-server)
Pliki w paczce (4)
  • SKILL.md 4 KB
  • evals/cases.json 3 KB
  • references/determinism-goldens-and-integration.md 4 KB
  • references/test-layers-and-doubles.md 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · thiennc-tesoglobal/flutter-skills100BSD-3-Clause
HoangNguyen0403/agent-skills-standard100MIT
testland/qa100MIT
ethiel97/flutter-clean-riverpod-skills100MIT
jyotiraditya-chauhan/test-kit100MIT
madteacher/mad-agents-skills100MIT
dhruvanbhalara/skills90MIT

Migawka bazy z 28.10.2026 · wersja paczki 08c85cc11a96 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 85flutter-core:flutter-testing-quality
    Pisze testy aplikacji Flutter: jednostkowe, widgetów, integracyjne i golden, z mockami, pokryciem i profilowaniem w DevTools.
  • 100flutter-testing-apps
    Implementuje testy jednostkowe, widgetów i integracyjne aplikacji Flutter, by zapewnić jakość kodu i zapobiegać regresjom.
  • 90mobile-testing
    Planuje testy aplikacji mobilnych: jednostkowe, widgetów, integracyjne, E2E, snapshoty i integrację z CI.
  • 100flutter-device-testing
    Obsługuje i weryfikuje aplikacje Flutter na konkretnym emulatorze, symulatorze, przeglądarce, desktopie lub urządzeniu: cykl życia celu, sprawdzenia stanu platformy i przepływy integracyjne na żywo.
  • 100testing
    Pomaga pisać i recenzować testy we Flutter i Dart: jednostkowe, widżetów i golden, naprawiać niestabilne testy, dodawać pokrycie i wybierać między testami jednostkowymi a widżetów.
  • 100flutter-device-testing
    Obsługuje i weryfikuje aplikacje Flutter na konkretnym emulatorze, symulatorze, przeglądarce, desktopie lub urządzeniu fizycznym: cykl życia celu, stan platformy, dowody z działania i przepływy integracyjne na żywo.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.