Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributefake_cloud_firestore

Fake implementation of Cloud Firestore for unit testing.

pub.devRemove
mocktail

Dart mock library with null safety support and no manual mocks or code generation.

pub.devRemove
ScoresHealth87 (best)84
Maintenance86 (best)61
Quality96100 (best)
Popularity8495 (best)
Community8080
Compatibility85100 (best)
UsageDownloads (30 days)347k4M (best)
Likes1481.2k (best)
Pub points150 / 160160 / 160 (best)
GitHub stars125702 (best)
MaintenanceLatest release4.5.0, 4 weeks ago (best)1.0.5, 7 months ago
Major versions in 12 months00
Contributors47 (best)21
Publisherwafrat.comfelangel.dev
FitPlatformsAndroid, iOS, Web, Windows, macOSAll (pure Dart)
WASM-readyNoYes
KindFlutter widgetsPure Dart
Code generationNoYes
Direct dependencies103 (best)
LicenseBSD-2-CLAUSEMIT
Setup effortLowLow
JudgementStrengths
  • Runs entirely in memory for fast unit testing.
  • Supports complex queries, transactions, batch writes, and custom security rules.
  • No code generation or manual mocks required.
  • Familiar API inspired by mockito.
  • Supports argument matchers and fallback values.
Weaknesses
  • Does not support all Cloud Firestore features (e.g., timestamps and durations in security rules are limited).
  • Requires maintaining compatibility versions matching the `cloud_firestore` package.
  • Cannot directly stub or verify extension methods.
  • Requires registering fallback values for custom types when using argument matchers.
WarningsNoneNone
fake_cloud_firestore vs mocktail: which Flutter package should you use? | pubscout