testing
Installation
SKILL.md
Testing
When to use
- Adding a repository, datasource, or parsing logic.
- Implementing or refactoring a BLoC/Cubit.
- Adding regression coverage for a bug.
Steps
1) Organize tests to mirror source folders
- Keep
test/structure aligned with the source layout so ownership and coverage are obvious. - Do not add dedicated tests for pure barrel export files.
- Group tests by behavior domain (render/navigation, BLoC event name, repository method name).
2) Unit test pure logic first
Prefer tests around: