Go Test Runner
Run backend tests and fix failures automatically.
Process
- •
Run tests:
bashcd backend && make test
- •
If all pass: Report success with summary.
- •
If failures occur:
- •Parse error output to identify failing tests
- •Read the failing test file and the source code being tested
- •Analyze the root cause
- •Fix the issue (prefer fixing source code over test expectations, unless the test expectation is wrong)
- •Re-run
cd backend && make test - •Repeat until all tests pass (max 3 iterations)
- •
If compilation errors:
- •Parse error messages
- •Fix syntax/type errors
- •Re-run
- •
Report: Summary of what was found and fixed.
Notes
- •Never skip or delete tests to make them pass
- •If a fix requires changing the public API, flag it for review instead of auto-fixing
- •Run
make lintafter fixes to check for style issues