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
source_gen_test

Test support for package:source_gen with helpers to validate success and failure cases.

pub.devRemove
ScoresHealth82 (best)78
Maintenance5387 (best)
Quality100100
Popularity93 (best)54
Community80 (best)58
Compatibility100 (best)85
UsageDownloads (30 days)1.5M (best)49k
Likes669 (best)13
Pub points160 / 160160 / 160
GitHub stars12k (best)20
MaintenanceLatest release10.0.0, 2 years ago1.4.2, 5 weeks ago (best)
Major versions in 12 months00
Contributors100+ (best)4
Publisherbloclibrary.devkevmoo.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesNo
KindPure DartPure Dart
Code generationNoYes
Direct dependencies5 (best)9
LicenseMITMIT
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
  • Simplifies testing of source_gen generators via annotations
  • Supports golden file testing for generated output
  • Includes combinatorial batch verification for stress-testing generators
Weaknesses
  • Strictly tied to the bloc ecosystem
  • Limited usefulness outside of developing custom code generators
Warnings
  • Quiet but busy
None
bloc_test vs source_gen_test: which Flutter package should you use? | pubscout