| name | run-tests |
| description | Build the project, check for warnings, run all tests, and report results. Quick health check for the codebase. |
Build & Test
Task
Run tests for: $ARGUMENTS
Steps
-
Build
cd /Users/playra/trinity-w1 && zig build 2>&1
- Check for warnings and errors
- Report any compilation issues
-
Run tests
| Argument | Command |
|---|
| all / empty | zig build test |
| vsa | zig test src/vsa.zig |
| vm | zig test src/vm.zig |
| bsd | zig test src/bsd/verify_bsd.zig |
| hslm | zig test src/hslm/model.zig |
| tri-api | zig test src/tri-api/main.zig |
| single file | zig test src/<file>.zig |
-
Parse results
- Count pass/fail
- If failures: read the failing test source, identify root cause
- Check for memory leaks (test allocator reports)
-
Format check
zig fmt --check src/ 2>&1
-
Report
- Build status: OK / FAIL
- Tests: N passed, M failed
- Format: clean / N files need formatting
- If any failures: specific error details and suggested fixes