Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributefirebase_database_mocks

Mock library to write unit tests for Firebase Realtime Database.

pub.devRemove
google_sign_in_mocks

Mocks for Google Sign In to write unit tests for authentication.

pub.devRemove
ScoresHealth76 (best)73
Maintenance84 (best)67
Quality96 (best)81
Popularity3058 (best)
Community80 (best)74
Compatibility9293 (best)
UsageDownloads (30 days)1.9k13k (best)
Likes1535 (best)
Pub points150 / 160150 / 160
GitHub stars11 (best)9
MaintenanceLatest release0.9.0, 4 weeks ago (best)0.4.2, 2 months ago
Major versions in 12 months00
Contributors8 (best)7
Publisherberete.devwafrat.com
FitPlatformsAndroid, iOS, Windows, macOSAndroid, iOS, Web, macOS
WASM-readyNoYes
KindFlutter widgetsFlutter widgets
Code generationNoNo
Direct dependencies42 (best)
LicenseBSD-3-CLAUSEBSD-2-CLAUSE
Setup effortLowLow
JudgementStrengths
  • 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.
  • Easy to set up and use in unit tests alongside firebase_auth_mocks.
  • Allows simulation of canceled sign-ins and custom exceptions.
Weaknesses
  • 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.
  • Limited only to mocking Google Sign In functionality for testing.
WarningsNoneNone
firebase_database_mocks vs google_sign_in_mocks: which Flutter package should you use? | pubscout