Testing Strategy
Zuraffa treats test generation as an opt-in part of the normalized make plan.
Canonical flow:
- create entity
- generate architecture with
zfa make - add
--testwhen you want generated tests - run
zfa build
Generation
1. CRUD slice with tests
zfa make Product --preset=crud --methods=get,getList,create --test
2. Custom use case test generation
zfa make SearchProducts usecase --domain=search --params=SearchQuery --returns=List<Product> --test
What gets generated?
Typical generated tests cover:
- success paths
- failure paths
- repository or service interactions
- stream behavior for watch-style use cases
Hermetic default suite
External infrastructure tests should stay opt-in and outside the default hermetic test path. In this repository, local-infra integration tests are tagged separately so normal flutter test runs remain hermetic.