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
state_notifier_test

A testing utility library for StateNotifier and Riverpod

pub.devRemove
ScoresHealth82 (best)48
Maintenance53 (best)0
Quality100 (best)96
Popularity93 (best)32
Community80 (best)52
Compatibility100100
UsageDownloads (30 days)1.6M (best)1.8k
Likes669 (best)22
Pub points160 / 160 (best)150 / 160
GitHub stars12k (best)8
MaintenanceLatest release10.0.0, 2 years ago (best)0.0.10, 4 years ago
Major versions in 12 months00
Contributors100+ (best)3
Publisherbloclibrary.devthat-dev.me
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
  • Clear, declarative syntax for testing emitted states
  • Supports seeding initial states, skipping emissions, and custom verifications
Weaknesses
  • Strictly tied to the bloc ecosystem
  • Relies on a third-party port of bloc_test which may lag behind official bloc_test updates
  • Limited to StateNotifier architectures
Warnings
  • Quiet but busy
None
bloc_test vs state_notifier_test: which Flutter package should you use? | pubscout