| description | Fix compile errors then run and fix tests |
|---|
Build, fix compile errors, then run and fix tests until everything passes.
- Build the project:
cmake --build build-
If compile errors occur:
- Read the error message carefully
- Fix the issue in the source code
- Rebuild and repeat until clean
-
Run tests:
ctest --test-dir build --output-on-failure- If tests fail:
- Analyze the failure output
- Fix the failing test or the code being tested
- Re-run tests and repeat until all pass
┌─────────────────────────────────────┐
│ Build Project │
└──────────────┬──────────────────────┘
│
▼
┌──────────────┐
│ Compile OK? │──No──▶ Fix Error ──┐
└──────┬───────┘ │
│ Yes │
▼ │
┌──────────────┐ │
│ Run Tests │◀───────────────────┘
└──────┬───────┘
│
▼
┌──────────────┐
│ Tests Pass? │──No──▶ Fix Test ───┐
└──────┬───────┘ │
│ Yes │
▼ │
✓ Done ◀─────────────────────────┘
Based on Vinnie Falco's fix command from cppalliance/coro-io-context