Repository navigation
Testing Strategy
Rodrigo Silveira edited this page Aug 6, 2026
·
1 revision
- unit tests for calculators and services
- repository tests against SQLite test DB
- Fiber handler tests with httptest
- golden JSON responses for critical endpoints if useful
- 90-day journey default end calculation
- extension recalculates projected end
- 30-day return eligibility validation
- daily wage accrual
- salary daily normalization accrual
- commission accrual from well production
- accrual remains pending when production missing
- sick substitution postings
- license substitution postings
- expense posting in BRL
- expense posting in gold
- reversal creation
- zero gold operation
- close journey ledger posting
- projected earnings calculations
- component tests for summary cards and forms
- integration tests for key workflows
- responsive layout checks
Recommended Playwright scenarios:
- create person → create collaborator
- plan period → accrue earnings
- record gold price → price list preview → expense entry
- view current account summary/detail
- revert expense
- zero gold
- close journey