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
mockito

A mock framework inspired by Mockito with APIs for Fakes, Mocks, behavior verification, and stubbing.

pub.devRemove
ScoresHealth8787
Maintenance86 (best)80
Quality96 (best)87
Popularity8495 (best)
Community8080
Compatibility85100 (best)
UsageDownloads (30 days)347k2.8M (best)
Likes1481.5k (best)
Pub points150 / 160 (best)130 / 160
GitHub stars125871 (best)
MaintenanceLatest release4.5.0, 4 weeks ago (best)5.8.1, 4 months ago
Major versions in 12 months00
Contributors47100+ (best)
Publisherwafrat.comdart.dev
FitPlatformsAndroid, iOS, Web, Windows, macOSAll (pure Dart)
WASM-readyNoYes
KindFlutter widgetsPure Dart
Code generationNoYes
Direct dependencies1010
LicenseBSD-2-CLAUSEAPACHE-2.0
Setup effortLowMedium
JudgementStrengths
  • Runs entirely in memory for fast unit testing.
  • Supports complex queries, transactions, batch writes, and custom security rules.
  • Robust behavior verification and stubbing features.
  • Supports null safety and generates nice mocks to avoid runtime type exceptions.
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.
  • Requires running build_runner for code generation.
  • Has an awkward syntax requirement for naming arguments within argument matchers.
WarningsNoneNone
fake_cloud_firestore vs mockito: which Flutter package should you use? | pubscout