Flutter Gems is a curated list of 7250+ useful Dart & Flutter packages that are categorized based on functionality.
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
mockitoormocktailto 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 compatibleMaintenance Status: Good
A full featured library for writing and running Dart tests across platforms.
matcher
π 66 β¬οΈ 6.5M
Dart 3 compatibleMaintenance 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 compatibleMaintenance Status: Good
Coverage data manipulation and formatting
platform
π 119 β¬οΈ 5.8M
Dart 3 compatibleMaintenance Status: Average
A pluggable, mockable platform information abstraction for Dart.
process
π 43 β¬οΈ 5.5M
Dart 3 compatibleMaintenance Status: Good
A pluggable, mockable process invocation abstraction for Dart.
fake_async
π 119 β¬οΈ 5M
Dart 3 compatibleMaintenance Status: Average
Fake asynchronous events such as timers and microtasks for deterministic testing.
webdriver
π 65 β¬οΈ 4.7M
Dart 3 compatibleMaintenance 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 compatibleMaintenance Status: Average
Testing utilities for package:file.
mocktail
π 1.23K β¬οΈ 2.4M
Dart 3 compatibleMaintenance 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 compatibleMaintenance Status: Good
A mock framework inspired by Mockito with APIs for Fakes, Mocks, behavior verification, and stubbing.
faker
π 940 β¬οΈ 266.8K
Dart 3 compatibleMaintenance 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 compatibleMaintenance Status: Good
A powerful, multiplatform E2E UI testing framework for Flutter apps that overcomes the limitations of integration_test by handling native interactions.
inspector
π 86 β¬οΈ 409.6K
Dart 3 compatibleMaintenance Status: Good
A Flutter package for inspecting widgets. Useful for quick debugging or QA testing.
alchemist
π 212 β¬οΈ 215K
Dart 3 compatibleMaintenance 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 compatibleMaintenance 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 compatibleMaintenance Status: Good
Streamlined, high-level API on top of flutter_test.
network_image_mock
π 66 β¬οΈ 230.3K
Dart 3 compatibleMaintenance Status: Poor
Utility for providing mocked Image.network response in Flutter widget tests.
widgets_to_image
π 222 β¬οΈ 17K
Dart 3 compatibleMaintenance 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 compatibleMaintenance Status: Poor
Development tool that helps you make your flutter application "pixel perfect"
bdd_widget_test
π 182 β¬οΈ 52.3K
Dart 3 compatibleMaintenance Status: Good
A BDD-style widget testing library. Generates Flutter widget tests from *.feature files.
fake_cloud_firestore
π 140 β¬οΈ 100.3K
Dart 3 compatibleMaintenance 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 compatibleMaintenance 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 compatibleMaintenance 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 compatibleMaintenance 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 compatibleMaintenance 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 compatibleMaintenance Status: Good
Utilities for writing unit tests of Builders.
mock_exceptions
π 5 β¬οΈ 199.2K
Dart 3 compatibleMaintenance 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
π 153 β¬οΈ 10.8K
Dart 3 compatibleMaintenance 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 compatibleMaintenance 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 compatibleMaintenance Status: Poor
A flutter package that provides various automation scripts to help you with your flutter project.
flutter_gherkin
π 135 β¬οΈ 6K
Dart 3 compatibleMaintenance Status: Poor
A Gherkin / Cucumber parser and test runner for Dart and Flutter
very_good_test_runner
π 23 β¬οΈ 141.2K
Dart 3 compatibleMaintenance Status: Average
A test runner for Flutter and Dart created by Very Good Ventures
benchmark_harness
π 71 β¬οΈ 71.2K
Dart 3 compatibleMaintenance Status: Good
The official Dart project benchmark harness.
patrol_cli
π 68 β¬οΈ 68K
Dart 3 compatibleMaintenance Status: Good
Command-line tool for Patrol, a powerful Flutter-native UI testing framework.
spot
π 110 β¬οΈ 7.2K
Dart 3 compatibleMaintenance Status: Good
Flutter widget test toolkit - spot, act, validate. Better selectors, automatic screenshots, chainable.
benchmark
π 33 β¬οΈ 99.6K
Dart 3 compatibleMaintenance Status: Poor
A full featured library for writing and running Dart benchmarks.
faker_dart
π 96 β¬οΈ 8.7K
Dart 3 compatibleMaintenance 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 compatibleMaintenance Status: Average
An API for defining and verifying files and directory structures.
round_spot
π 91 β¬οΈ 31
Dart 3 compatibleMaintenance Status: Poor
Customizable, easy to use heat map interface analysis library
marionette_flutter
π 44 β¬οΈ 50.8K
Dart 3 compatibleMaintenance 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 compatibleMaintenance Status: Poor
Provides TransparentPointer to control hit testing
remove_from_coverage
π 37 β¬οΈ 57.9K
Dart 3 compatibleMaintenance Status: Poor
A command-line tool to customize the contents of a coverage lcov.info file.
source_gen_test
π 13 β¬οΈ 65K
Dart 3 compatibleMaintenance 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 compatibleMaintenance Status: Poor
HTTP requests mocking library for dart and flutter. Test your application in isolation.
glados
π 49 β¬οΈ 16.8K
Dart 3 compatibleMaintenance Status: Poor
A simple testing framework that tries to break your properties.
test_cov_console
π 34 β¬οΈ 32.1K
Dart 3 compatibleMaintenance Status: Poor
Command line utility to read lcov.info and print the coverage report to console.
better_test_reporter
π 6 β¬οΈ 58.6K
Dart 3 compatibleMaintenance 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 compatibleMaintenance Status: Poor
The sweet side of testing. An end to end testing framework for Flutter.
multi_app_viewer
π 47 β¬οΈ 11
Dart 3 compatibleMaintenance 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 compatibleMaintenance 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 compatibleMaintenance Status: Good
Mocks for Firebase Storage. Use this package to write unit tests involving Firebase Storage.
riverpod_test
π 27 β¬οΈ 16.8K
Dart 3 compatibleMaintenance 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 compatibleMaintenance Status: Poor
A Dart Library for all of your random needs you'll ever require in your projects.
nonce
π 12 β¬οΈ 33.2K
Dart 3 compatibleMaintenance 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 compatibleMaintenance 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 compatibleMaintenance Status: Poor
Converts LCOV to Cobertura format; the ideal format for GitHub and Azure DevOps.
fluttium
π 32 β¬οΈ 2K
Dart 3 compatibleMaintenance Status: Poor
The core package for the Fluttium user flow testing framework
test_html_builder
π 1 β¬οΈ 38.8K
Dart 3 compatibleMaintenance Status: Good
Builder that generates HTML files from templates for dart browser tests.
full_coverage
π 24 β¬οΈ 9.8K
Dart 3 compatibleMaintenance Status: Poor
A package script for allowing coverage test tool to see all Dart files.
mock_data
π 29 β¬οΈ 584
Dart 3 compatibleMaintenance 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 compatibleMaintenance 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 compatibleMaintenance Status: Average
An Appium binding for Dart. Support WebDriver W3C spec inheriting webdriver.dart.
bdd_framework
π 27 β¬οΈ 298
Dart 3 compatibleMaintenance 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 compatibleMaintenance 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 compatibleMaintenance 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 compatibleMaintenance Status: Good
Approval Tests implementation in Dart. Inspired by ApprovalTests.
figma_frame_inspector
π 25 β¬οΈ 84
Dart 3 compatibleMaintenance Status: Poor
A Flutter plugin to verify how accurately the Figma frame was implemented in the app.
shouldly
π 25 β¬οΈ 38
Dart 3 compatibleMaintenance Status: Poor
A simple, extensible BDD assertion library which focuses on giving great error messages when the assertion fails.
testsweets
π 24 β¬οΈ 116
Dart 3 compatibleMaintenance Status: Poor
A no-code test automation tool that turns any tester into an automation engineer
ogurets
π 24 β¬οΈ 59
Dart 3 compatibleMaintenance 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 compatibleMaintenance 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 compatibleMaintenance Status: Average
Dart package for the generation of Random Names, based on most common names
lorem_ipsum
π 19 β¬οΈ 4.3K
Dart 3 compatibleMaintenance Status: Poor
It is a package to generate random text easily, quickly and dynamically.
fluttium_cli
π 21 β¬οΈ 212
Dart 3 compatibleMaintenance Status: Poor
The CLI for Fluttium, a user flow testing framework for Flutter
modular_test
π 12 β¬οΈ 10.5K
Dart 3 compatibleMaintenance Status: Poor
Smart project structure with dependency injection and route management
acyclic_steps
π 20 β¬οΈ 497
Dart 3 compatibleMaintenance Status: Average
An explicit acyclic step dependency framework with concurrent evaluation and dependency injection.
react_testing_library
π 4 β¬οΈ 17.1K
Dart 3 compatibleMaintenance 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 compatibleMaintenance 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 compatibleMaintenance Status: Poor
A Flutter package to enable code reuse while making tests more readable.
flame_test
π 7 β¬οΈ 6.2K
Dart 3 compatibleMaintenance Status: Good
A package with classes to help testing applications using Flame
lcov_dart
π 1 β¬οΈ 10.4K
Dart 3 compatibleMaintenance 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 compatibleMaintenance Status: Good
A library for testing OverReact components
spec_cli
π 9 β¬οΈ 112
Dart 3 compatibleMaintenance Status: Poor
CLI for Spec - a streamlined testing framework for Dart & Flutter.
fast_flutter_driver
π 9 β¬οΈ 62
Dart 3 compatibleMaintenance Status: Poor
Toolkit for running rapidly flutter driver tests on desktop.
dart_test_adapter
π 7 β¬οΈ 1.4K
Dart 3 compatibleMaintenance Status: Poor
Provides a Dart API for interacting with `dart test`/`flutter test` programmatically
flutter_faker_plus
π 8 β¬οΈ 30
Dart 3 compatibleMaintenance Status: Good
Generate random fake data for user profiles, e-commerce products, and geolocations etc.
fast_flutter_driver_tool
π 7 β¬οΈ 120
Dart 3 compatibleMaintenance Status: Poor
Toolkit for running rapidly flutter driver tests on desktop.
ngtest
π 3 β¬οΈ 4.4K
Dart 3 compatibleMaintenance 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 compatibleMaintenance Status: Good
Utilities for writing automated tests for Conduit applications
stash_test
π 0 β¬οΈ 114
Dart 3 compatibleMaintenance Status: Poor
Provides the testing support needed in order to implement extensions to the base stash package
state_queue_test
π 0 β¬οΈ 19
Dart 3 compatibleMaintenance 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..
