Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Flutter testing guide

Writes and fixes Flutter unit, widget and integration tests with current APIs, so your test suite stays reliable.

What we improved

Added a "Core patterns" section to SKILL.md so the essentials work without the references: a widget test with an injected fake, a table of when to use pump, pump(duration), pumpAndSettle and runAsync, mocktail and Mockito stubbing, a Method

Improved by YourAISkill from the original by MADTeacher, under its MIT licence. The download includes the author's licence and a CHANGES.md listing every change. Both Claude reviews read the improved version.

Claude's review

8/10 Accurate Flutter testing guide with correct pump semantics, current channel mocking and view sizing APIs, a list of removed APIs to avoid, and routed error-to-fix references.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Write, fix, review, debug, and validate Flutter tests for apps, packages, and plugins. Use when adding unit tests, widget tests, integration tests, MethodChannel or plugin mocks, Mockito or mocktail test doubles, golden or accessibility checks, CI test commands, test failures, MissingPluginException, pump or pumpAndSettle problems, finder errors, build_runner mock generation, device integration testing, web integration testing, or flaky Flutter tests.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: flutter-testing
description: >-
  Write, fix, review, debug, and validate Flutter tests for apps, packages,
  and plugins. Use when adding unit tests, widget tests, integration tests,
  MethodChannel or plugin mocks, Mockito or mocktail test doubles, golden or
  accessibility checks, CI test commands, test failures, MissingPluginException,
  pump or pumpAndSettle problems, finder errors, build_runner mock generation,
  device integration testing, web integration testing, or flaky Flutter tests.
metadata:
  author: Stanislav [MADTeacher] Chernyshev
  version: "2.0"
---
<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by MADTeacher. See CHANGES.md. -->

# Flutter Testing

You are a Flutter testing engineer for app, package, and plugin projects.

## Principle 0

Do not write Flutter tests from memory. First inspect the project, choose the
right test layer, read the routed reference for the scenario, then run the
closest validation command. Broken or flaky tests waste more time than missing
tests because they create false confidence and slow future changes.

## Workflow

1. Inspect the project before changing tests: `pubspec.yaml` (is it Mockito or
   mocktail, bloc_test, golden tooling?), existing `test/`, `integration_test/`,
   `test_driver/`, generated `*.mocks.dart` files, state management, how
   dependencies are injected, plugin usage, and CI commands.
2. Choose the test layer:
   - Pure Dart functions, repositories, services, state reducers, and view
     models: unit tests.
   - Single widgets, forms, navigation shells, semantics, gestures, responsive
     layout, goldens, and UI state: widget tests.
   - Complete user flows on a real device or browser, screenshots,
     performance reports, and native/plugin bridges: integration tests.
   - Flutter plugins or app code using platform channels: plugin and mocking
...

From MADTeacher's repository, MIT licence.

Related skills

  • Checked

    React Native testing

    Writes React Native Testing Library tests the right way for v13 and v14, so tests stay fast and reliable.

    by callstackincubator 1.7k
    8/101 credit
  • Checked

    JUnit and Mockito tests

    Writes and fixes Java tests with JUnit, AssertJ and Mockito that are deterministic and keep failures visible.

    by github 42k
    8/101 credit
  • Checked

    Test code review

    Reviews new or changed tests in pytest, Jest, Go and more, so weak tests are caught before merge.

    by amElnagdy 1.3k
    7/101 credit
  • Checked

    Go table driven tests

    Writes Go tests with table cases, fakes, fuzzing, benchmarks and golden files that stay fast and reliable.

    by ericrisco 691
    8/101 credit
  • Checked

    MSTest Unit Testing

    Writes modern C# unit tests with current MSTest APIs, assertions, data driven tests and lifecycle patterns.

    by github 42k
    8/101 credit
  • Checked

    Quarkus Testing

    Writes and fixes Quarkus tests using Dev Services containers, with the right profiles, mocks and run commands.

    by github 42k
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added