Flutter Gems is a curated list of 7250+ useful Dart & Flutter packages that are categorized based on functionality.

Discord Medium LinkedIn X

Top Flutter Testing packages

Last updated: May 18, 2026

A robust testing suite—comprising unit, widget, and integration tests—guarantees your app remains stable as it scales, allowing developers to refactor code with confidence.

Best Practices for Testing

  • Test Pyramid: Focus the majority of your effort on lightning-fast Unit Tests (business logic) and Widget Tests (UI states). Reserve slow, flaky Integration Tests (end-to-end device testing) for only the most critical user journeys like Checkout or Login.
  • Mocking: Never make real network requests or database calls during unit/widget tests. Use packages like mockito or mocktail to inject predictable fake data and simulate failure states (like 500 Server Errors).
  • Golden Tests: Rely on Golden Tests to verify UI design. Comparing pixels is far more reliable than writing dozens of assertions checking if a specific widget has a specific color property.

The complete list of Testing Frameworks, Mocking utilities, and Golden Test packages for Flutter is provided below.


test
👍 621   ⬇️ 6.8M
Dart 3 compatible
Maintenance Status: Good

A full featured library for writing and running Dart tests across platforms.

matcher
👍 66   ⬇️ 6.5M
Dart 3 compatible
Maintenance Status: Good

Support for specifying test expectations via an extensible Matcher class. Also includes a number of built-in Matcher implementations for common cases.

coverage
👍 130   ⬇️ 6.1M
Dart 3 compatible
Maintenance Status: Good

Coverage data manipulation and formatting

platform
👍 119   ⬇️ 5.8M
Dart 3 compatible
Maintenance Status: Average

A pluggable, mockable platform information abstraction for Dart.

process
👍 43   ⬇️ 5.5M
Dart 3 compatible
Maintenance Status: Good

A pluggable, mockable process invocation abstraction for Dart.

fake_async
👍 119   ⬇️ 5M
Dart 3 compatible
Maintenance Status: Average

Fake asynchronous events such as timers and microtasks for deterministic testing.

webdriver
👍 65   ⬇️ 4.7M
Dart 3 compatible
Maintenance Status: Average

Provides WebDriver bindings for Dart. Supports WebDriver JSON interface and W3C spec. Requires the use of WebDriver remote server.

file_testing
👍 4   ⬇️ 4.4M
Dart 3 compatible
Maintenance Status: Average

Testing utilities for package:file.

mocktail
👍 1.23K   ⬇️ 2.4M
Dart 3 compatible
Maintenance Status: Good

A Dart mock library which simplifies mocking with null safety support and no manual mocks or code generation.

mockito
👍 1.53K   ⬇️ 1.9M
Dart 3 compatible
Maintenance Status: Good

A mock framework inspired by Mockito with APIs for Fakes, Mocks, behavior verification, and stubbing.

faker
👍 940   ⬇️ 266.8K
Dart 3 compatible
Maintenance Status: Average

A library for generating fake data. faker is heavily inspired by the Python package faker and, the Ruby package ffaker.

patrol
👍 694   ⬇️ 284.6K
Dart 3 compatible
Maintenance Status: Good

A powerful, multiplatform E2E UI testing framework for Flutter apps that overcomes the limitations of integration_test by handling native interactions.

inspector Card Image
inspector
👍 86   ⬇️ 409.6K
Dart 3 compatible
Maintenance Status: Good

A Flutter package for inspecting widgets. Useful for quick debugging or QA testing.

alchemist
👍 212   ⬇️ 215K
Dart 3 compatible
Maintenance Status: Good

A support package that aims to make golden testing in Flutter easier and more streamlined.

http_mock_adapter
👍 185   ⬇️ 244.6K
Dart 3 compatible
Maintenance Status: Poor

A simple to use mocking package for Dio intended to be used in tests. It provides various types and methods to declaratively mock request-response communication.

patrol_finders
👍 52   ⬇️ 322.5K
Dart 3 compatible
Maintenance Status: Good

Streamlined, high-level API on top of flutter_test.

network_image_mock
👍 66   ⬇️ 230.3K
Dart 3 compatible
Maintenance Status: Poor

Utility for providing mocked Image.network response in Flutter widget tests.

widgets_to_image
👍 222   ⬇️ 17K
Dart 3 compatible
Maintenance Status: Good

A powerful Flutter package to convert any widget into high-quality images with customizable formats, quality settings, and advanced features.

pixel_perfect
👍 222   ⬇️ 6.7K
Dart 3 compatible
Maintenance Status: Poor

Development tool that helps you make your flutter application "pixel perfect"

bdd_widget_test
👍 182   ⬇️ 52.3K
Dart 3 compatible
Maintenance Status: Good

A BDD-style widget testing library. Generates Flutter widget tests from *.feature files.

fake_cloud_firestore
👍 140   ⬇️ 100.3K
Dart 3 compatible
Maintenance Status: Good

Previously known as cloud_firestore_mocks. Fake implementation of Cloud Firestore. Use this package to unit test apps that use Cloud Firestore.

defer_pointer
👍 156   ⬇️ 78.6K
Dart 3 compatible
Maintenance Status: Poor

An alternative to Overlay which allows you to easily render and hit test a widget outside its parent bounds.

testreport
👍 3   ⬇️ 218.3K
Dart 3 compatible
Maintenance Status: Poor

This library can be used to process the results of dart tests. It processes data from the `json` output emitted by the dart test runner and provide an API to the test results.

junitreport
👍 36   ⬇️ 175.3K
Dart 3 compatible
Maintenance Status: Poor

Generate JUnit XML reports from dart test runs. Transforms the output of dart or flutter tests to JUnit style XML

firebase_auth_mocks
👍 104   ⬇️ 86.8K
Dart 3 compatible
Maintenance Status: Good

Fakes for Firebase Auth. Use this package with `google_sign_in_mocks` to write unit tests involving Firebase Authentication.

build_test
👍 11   ⬇️ 198.6K
Dart 3 compatible
Maintenance Status: Good

Utilities for writing unit tests of Builders.

mock_exceptions
👍 5   ⬇️ 199.2K
Dart 3 compatible
Maintenance Status: Poor

Provides a mechanism to throw exceptions on certain calls. This is useful when working with a Fake and we still want to occasionally make it throw exceptions.

convenient_test Card Image
convenient_test
👍 153   ⬇️ 10.8K
Dart 3 compatible
Maintenance Status: Good

Write and debug tests easily, with full action history, time travel, screenshots, rapid re-execution, video records, interactivity, isolation and more

mocktail_image_network
👍 64   ⬇️ 102K
Dart 3 compatible
Maintenance Status: Good

A Dart package which allows you to mock Image.network in your widget tests with confidence using the mocktail package.

flutter_automation
👍 142   ⬇️ 241
Dart 3 compatible
Maintenance Status: Poor

A flutter package that provides various automation scripts to help you with your flutter project.

flutter_gherkin
👍 135   ⬇️ 6K
Dart 3 compatible
Maintenance Status: Poor

A Gherkin / Cucumber parser and test runner for Dart and Flutter

very_good_test_runner
👍 23   ⬇️ 141.2K
Dart 3 compatible
Maintenance Status: Average

A test runner for Flutter and Dart created by Very Good Ventures

benchmark_harness
👍 71   ⬇️ 71.2K
Dart 3 compatible
Maintenance Status: Good

The official Dart project benchmark harness.

patrol_cli
👍 68   ⬇️ 68K
Dart 3 compatible
Maintenance Status: Good

Command-line tool for Patrol, a powerful Flutter-native UI testing framework.

spot
👍 110   ⬇️ 7.2K
Dart 3 compatible
Maintenance Status: Good

Flutter widget test toolkit - spot, act, validate. Better selectors, automatic screenshots, chainable.

benchmark
👍 33   ⬇️ 99.6K
Dart 3 compatible
Maintenance Status: Poor

A full featured library for writing and running Dart benchmarks.

faker_dart
👍 96   ⬇️ 8.7K
Dart 3 compatible
Maintenance Status: Good

generate massive amounts of fake data in Dart & Flutter! A dart port of the famous faker.js

test_descriptor
👍 4   ⬇️ 116.5K
Dart 3 compatible
Maintenance Status: Average

An API for defining and verifying files and directory structures.

round_spot
👍 91   ⬇️ 31
Dart 3 compatible
Maintenance Status: Poor

Customizable, easy to use heat map interface analysis library

marionette_flutter
👍 44   ⬇️ 50.8K
Dart 3 compatible
Maintenance Status: Good

Flutter extensions for AI agent interaction via MCP — lets Claude, Copilot, and Cursor tap, scroll, type, and screenshot your app.

transparent_pointer
👍 59   ⬇️ 31.9K
Dart 3 compatible
Maintenance Status: Poor

Provides TransparentPointer to control hit testing

remove_from_coverage
👍 37   ⬇️ 57.9K
Dart 3 compatible
Maintenance Status: Poor

A command-line tool to customize the contents of a coverage lcov.info file.

source_gen_test
👍 13   ⬇️ 65K
Dart 3 compatible
Maintenance Status: Good

Test support for the source_gen package. Includes helpers to make it easy to validate both success and failure cases.

nock
👍 24   ⬇️ 49.6K
Dart 3 compatible
Maintenance Status: Poor

HTTP requests mocking library for dart and flutter. Test your application in isolation.

glados
👍 49   ⬇️ 16.8K
Dart 3 compatible
Maintenance Status: Poor

A simple testing framework that tries to break your properties.

test_cov_console
👍 34   ⬇️ 32.1K
Dart 3 compatible
Maintenance Status: Poor

Command line utility to read lcov.info and print the coverage report to console.

better_test_reporter
👍 6   ⬇️ 58.6K
Dart 3 compatible
Maintenance Status: Poor

A CLI for generating a junit xml report from dart test json output and libraries for parsing test json into dev-friendly models

honey
👍 48   ⬇️ 47
Dart 3 compatible
Maintenance Status: Poor

The sweet side of testing. An end to end testing framework for Flutter.

multi_app_viewer
👍 47   ⬇️ 11
Dart 3 compatible
Maintenance Status: Poor

Tool to view and navigate one app with different settings at the same time

google_sign_in_mocks
👍 34   ⬇️ 14.4K
Dart 3 compatible
Maintenance Status: Good

Mocks for Google Sign In. Use this package with `firebase_auth_mocks` to write unit tests involving Firebase Authentication.

firebase_storage_mocks
👍 40   ⬇️ 6.6K
Dart 3 compatible
Maintenance Status: Good

Mocks for Firebase Storage. Use this package to write unit tests involving Firebase Storage.

riverpod_test
👍 27   ⬇️ 16.8K
Dart 3 compatible
Maintenance Status: Average

A testing library which makes it easy to test providers. Built to be used with the riverpod package.

random_x
👍 39   ⬇️ 427
Dart 3 compatible
Maintenance Status: Poor

A Dart Library for all of your random needs you'll ever require in your projects.

nonce
👍 12   ⬇️ 33.2K
Dart 3 compatible
Maintenance Status: Poor

Nonce contains a static generator that generates random alphanumeric strings, and can be constructed as an object containing a generated string.

flutter_auto_gui
👍 34   ⬇️ 35
Dart 3 compatible
Maintenance Status: Poor

A flutter plugin for desktop applications for controlling mouse and keyboard to automate interactions with other applications.

cobertura
👍 6   ⬇️ 34.1K
Dart 3 compatible
Maintenance Status: Poor

Converts LCOV to Cobertura format; the ideal format for GitHub and Azure DevOps.

fluttium
👍 32   ⬇️ 2K
Dart 3 compatible
Maintenance Status: Poor

The core package for the Fluttium user flow testing framework

test_html_builder
👍 1   ⬇️ 38.8K
Dart 3 compatible
Maintenance Status: Good

Builder that generates HTML files from templates for dart browser tests.

full_coverage
👍 24   ⬇️ 9.8K
Dart 3 compatible
Maintenance Status: Poor

A package script for allowing coverage test tool to see all Dart files.

mock_data
👍 29   ⬇️ 584
Dart 3 compatible
Maintenance Status: Poor

Generate random data using Dart. Can be used to create random strings, integers, names, colors, IPs, UUIDs, URLs and dates.

elementary_test
👍 27   ⬇️ 2.3K
Dart 3 compatible
Maintenance Status: Good

A testing library which makes it easy to test elementary used apps. Built to be used with the elementary architecture package.

appium_driver
👍 23   ⬇️ 5.6K
Dart 3 compatible
Maintenance Status: Average

An Appium binding for Dart. Support WebDriver W3C spec inheriting webdriver.dart.

bdd_framework
👍 27   ⬇️ 298
Dart 3 compatible
Maintenance Status: Good

BDD framework for Dart/Flutter. Lets you create BDD tests in code, and gives you easy to read error messages when assertions fail. Exports to Gherkin/Cucumber feature files.

coverde
👍 25   ⬇️ 2.2K
Dart 3 compatible
Maintenance Status: Good

A CLI for optimizing test execution and manipulating coverage trace files. Optimize tests, validate coverage, filter trace files, and generate HTML reports.

espresso
👍 26   ⬇️ 423
Dart 3 compatible
Maintenance Status: Good

Java classes for testing Flutter apps using Espresso. Allows driving Flutter widgets from a native Espresso test.

approval_tests
👍 25   ⬇️ 650
Dart 3 compatible
Maintenance Status: Good

Approval Tests implementation in Dart. Inspired by ApprovalTests.

figma_frame_inspector
👍 25   ⬇️ 84
Dart 3 compatible
Maintenance Status: Poor

A Flutter plugin to verify how accurately the Figma frame was implemented in the app.

shouldly
👍 25   ⬇️ 38
Dart 3 compatible
Maintenance Status: Poor

A simple, extensible BDD assertion library which focuses on giving great error messages when the assertion fails.

testsweets
👍 24   ⬇️ 116
Dart 3 compatible
Maintenance Status: Poor

A no-code test automation tool that turns any tester into an automation engineer

ogurets
👍 24   ⬇️ 59
Dart 3 compatible
Maintenance Status: Poor

Gherkin/Cucumber implementation in dart, supporting classes and simple libraries, hooks, dependency injection, and all the things you would want in an easy to use format.

state_notifier_test
👍 22   ⬇️ 1.9K
Dart 3 compatible
Maintenance Status: Poor

A testing library which makes it easy to test StateNotifier. Built to be used with the state_notifier, riverpod or flutter_riverpod packages.

random_name_generator
👍 23   ⬇️ 607
Dart 3 compatible
Maintenance Status: Average

Dart package for the generation of Random Names, based on most common names

lorem_ipsum
👍 19   ⬇️ 4.3K
Dart 3 compatible
Maintenance Status: Poor

It is a package to generate random text easily, quickly and dynamically.

fluttium_cli
👍 21   ⬇️ 212
Dart 3 compatible
Maintenance Status: Poor

The CLI for Fluttium, a user flow testing framework for Flutter

modular_test
👍 12   ⬇️ 10.5K
Dart 3 compatible
Maintenance Status: Poor

Smart project structure with dependency injection and route management

acyclic_steps
👍 20   ⬇️ 497
Dart 3 compatible
Maintenance Status: Average

An explicit acyclic step dependency framework with concurrent evaluation and dependency injection.

react_testing_library
👍 4   ⬇️ 17.1K
Dart 3 compatible
Maintenance Status: Good

A Dart unit testing library for OverReact components that mimics the API of the JS react-testing-library

global_assert
👍 7   ⬇️ 12K
Dart 3 compatible
Maintenance Status: Poor

A micro-library that makes it easy to do build-time assertions about constants so that misconfigured apps fail at build-time instead of failing at runtime.

given_when_then
👍 14   ⬇️ 40
Dart 3 compatible
Maintenance Status: Poor

A Flutter package to enable code reuse while making tests more readable.

flame_test
👍 7   ⬇️ 6.2K
Dart 3 compatible
Maintenance Status: Good

A package with classes to help testing applications using Flame

lcov_dart
👍 1   ⬇️ 10.4K
Dart 3 compatible
Maintenance Status: Poor

Parse and format to LCOV your code coverage reports. The best way to share your code coverage stats.

over_react_test
👍 1   ⬇️ 10.2K
Dart 3 compatible
Maintenance Status: Good

A library for testing OverReact components

spec_cli
👍 9   ⬇️ 112
Dart 3 compatible
Maintenance Status: Poor

CLI for Spec - a streamlined testing framework for Dart & Flutter.

fast_flutter_driver
👍 9   ⬇️ 62
Dart 3 compatible
Maintenance Status: Poor

Toolkit for running rapidly flutter driver tests on desktop.

dart_test_adapter
👍 7   ⬇️ 1.4K
Dart 3 compatible
Maintenance Status: Poor

Provides a Dart API for interacting with `dart test`/`flutter test` programmatically

flutter_faker_plus
👍 8   ⬇️ 30
Dart 3 compatible
Maintenance Status: Good

Generate random fake data for user profiles, e-commerce products, and geolocations etc.

fast_flutter_driver_tool
👍 7   ⬇️ 120
Dart 3 compatible
Maintenance Status: Poor

Toolkit for running rapidly flutter driver tests on desktop.

ngtest
👍 3   ⬇️ 4.4K
Dart 3 compatible
Maintenance Status: Poor

Testing runner and library for AngularDart. This package is necessary to write component tests for AngularDart components.

conduit_test
👍 2   ⬇️ 578
Dart 3 compatible
Maintenance Status: Good

Utilities for writing automated tests for Conduit applications

stash_test
👍 0   ⬇️ 114
Dart 3 compatible
Maintenance Status: Poor

Provides the testing support needed in order to implement extensions to the base stash package

state_queue_test
👍 0   ⬇️ 19
Dart 3 compatible
Maintenance Status: Poor

Testing utilities for `StateQueue`

checks
👍 119   ⬇️ 51.4K

Maintenance Status: Good

A framework for checking values against expectations and building custom expectations.

flutter_test_robots
👍 32   ⬇️ 63.6K

Maintenance Status: Good

Flutter test tools and extensions to simulate human-computer interactions

debug_friend
👍 59   ⬇️ 61

Maintenance Status: Poor

Flutter debug helper widget with device info, common and custom actions.

gherkin
👍 40   ⬇️ 17.6K

Maintenance Status: Poor

A Gherkin parsers and runner for Dart which is very similar to Cucumber, it provides the base BDD functionality ready for use in platform specific implementations i.e. flutter/web

test_coverage
👍 44   ⬇️ 1.4K

Maintenance Status: Poor

Command line utility to run tests in Dart VM and collect coverage data.

cel
👍 6   ⬇️ 31.8K

Maintenance Status: Good

This project parses and evaluates Common Expression Language (CEL) programs against some inputs.

integration_test_preview
👍 11   ⬇️ 73

Maintenance Status: Poor

Integration Test Preview has pre-configured methods that allow for faster test deployment for end to end (e2e) test coverage (using Android and iOS platform UIs).

page_object
👍 9   ⬇️ 2.5K

Maintenance Status: Poor

A Flutter package to help with implementing the Page Object pattern in a Flutter app..

flutter_ume_kit_ui
👍 5   ⬇️ 120

Maintenance Status: Poor

UI Kits for flutter_ume.