This document explains testing strategy and test organization.
The project prioritizes testing core logic instead of CLI wrappers.
Most tests focus on:
- updater logic
- scanner behavior
- strategy behavior
tests/
├── cli/
├── core/
├── integration/
└── languages/
| Type | Purpose |
|---|---|
| Unit Tests | Individual functions/classes |
| Integration Tests | Full workflow validation |
| CLI Tests | Command behavior |
pytestpytest --cov=apppytest tests/coreThe project heavily uses:
tmp_pathfor isolated filesystem testing.
| Area | Goal |
|---|---|
| Updater | 95%+ |
| Strategies | 90%+ |
| Scanner | 85%+ |
Potential future additions:
- golden file testing
- diff validation
- permission error tests
- encoding edge cases