FLUTTER ECOSYSTEM

fake_firebase_security_rules

Fake for Firebase Security Rules. To be used by fake_cloud_firestore and mock_firebase_storage.

Latest version
0.6.0
30-day downloads
244K
Likes
1
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A testing utility that simulates Firebase Security Rules behavior, enabling developers to test Firestore and Firebase Storage interactions without connecting to the real Firebase backend. It is designed to work alongside fake_cloud_firestore and mock_firebase_storage, providing a consistent environment for unit and integration tests. This package helps validate security rule logic during development by mimicking real rule enforcement in a controlled, local setup.

Use cases
  • Testing Firestore read/write permissions
  • Simulating secure storage access in tests
  • Validating rule logic without live Firebase
  • Integrating with CI/CD pipelines
  • Developing offline test suites
Key features
  • Matches real Firebase Security Rules behavior
  • Works with fake_cloud_firestore and mock_firebase_storage
  • Lightweight and easy to integrate
  • Supports all major platforms
  • Provides accurate rule evaluation
Suitable for
  • Flutter developers writing tests
  • Teams using Firebase in production
  • Test-driven development workflows
  • CI environments requiring isolated testing
Considerations
  • Not intended for production use
  • Requires companion packages for full functionality
  • Rule syntax must be compatible with real Firebase rules
  • Limited to simulation—does not enforce actual security
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add fake_firebase_security_rules

Categories

Dependencies

Dependency list 4 items

Source repository

Related projects