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
firebase_database_mocks

Mock library to write unit tests for Firebase Realtime Database.

pub.devRemove
ScoresHealth87 (best)76
Maintenance86 (best)84
Quality9696
Popularity84 (best)30
Community8080
Compatibility8592 (best)
UsageDownloads (30 days)347k (best)1.9k
Likes148 (best)15
Pub points150 / 160150 / 160
GitHub stars125 (best)11
MaintenanceLatest release4.5.0, 4 weeks ago (best)0.9.0, 4 weeks ago
Major versions in 12 months00
Contributors47 (best)8
Publisherwafrat.comberete.dev
FitPlatformsAndroid, iOS, Web, Windows, macOSAndroid, iOS, Windows, macOS
WASM-readyNoNo
KindFlutter widgetsFlutter widgets
Code generationNoNo
Direct dependencies104 (best)
LicenseBSD-2-CLAUSEBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Runs entirely in memory for fast unit testing.
  • Supports complex queries, transactions, batch writes, and custom security rules.
  • Enables simple in-memory unit testing for FirebaseDatabase.
  • Requires no Firebase initialization or TestWidgetsFlutterBinding for basic usage.
  • Supports common database operations like ref, child, get, set, update, remove, and once.
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.
  • Data persistence disabling feature is currently experimental and may have issues.
  • Only supports `DatabaseEventType.value` for `once()`.
  • Limited to a subset of getters and methods defined in the mock classes.
WarningsNoneNone
fake_cloud_firestore vs firebase_database_mocks: which Flutter package should you use? | pubscout