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