testing
SKILL.md
Testing Guide
For comprehensive testing documentation, read docs/TESTING_IMPLEMENTATION.md.
Key Reminders
When creating extraction configs:
- Ask developer for game code to base configs on
- Extract individual components rather than composite calculations
- Parameters are all calculation inputs (functions or state, any domain)
- Test multiple output scenarios to validate formulas work generally
When writing parameter tests:
- Look for corresponding domain code
- Ask developer if unsure about implementation status
- Throw explicit errors for confirmed missing implementations
Testing workflow:
- Get game code from developer
- Create extraction config with individual components
- Run live extraction and capture cloud save at same time
- Write parameter tests for all calculation inputs
- Write calculation tests for multiple scenarios
Common test commands:
yarn test tests/domains/[feature]/[aspect]-parameters.test.ts
yarn test:domains
yarn test:watch