Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebloc_test

A testing library that makes it easy to test blocs and cubits.

pub.devRemove
matcher

Support for specifying test expectations via an extensible Matcher class.

pub.devRemove
ScoresHealth8283 (best)
Maintenance5372 (best)
Quality100 (best)81
Popularity93 (best)90
Community8080
Compatibility100100
UsageDownloads (30 days)1.6M15M (best)
Likes669 (best)68
Pub points160 / 160 (best)150 / 160
GitHub stars12k (best)534
MaintenanceLatest release10.0.0, 2 years ago0.12.20, 7 months ago (best)
Major versions in 12 months00
Contributors100+100+
Publisherbloclibrary.devdart.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies55
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Simplifies asynchronous bloc testing with clear syntax
  • Provides built-in support for seeding states, skipping events, and waiting on async operations
  • Integrates seamlessly with package:test and mocktail
  • Extensible Matcher class allows defining custom validation logic.
  • Rich set of built-in matchers for futures, streams, collections, and types.
  • Detailed failure messages providing clear context on what went wrong.
Weaknesses
  • Strictly tied to the bloc ecosystem
  • Does not replace the underlying test runner framework (requires package:test or similar).
Warnings
  • Quiet but busy
None
bloc_test vs matcher: which Flutter package should you use? | pubscout