feat: add Unity color and check target
Enable UNITY_OUTPUT_COLOR and UNITY_INCLUDE_PRINT_FORMATTED via compile definitions on the unity target so colors propagate to all test suites automatically. Add a 'check' custom target that builds all suites and runs CTest with --output-on-failure and USES_TERMINAL, keeping ANSI colors alive through Ninja's buffering.
This commit is contained in:
@@ -15,7 +15,8 @@
|
||||
```sh
|
||||
cmake -S . -B build -G Ninja
|
||||
ninja -C build # build
|
||||
ninja -C build test # run tests
|
||||
ninja -C build check # run tests (full Unity output, colored)
|
||||
ninja -C build test # run tests (CTest summary only)
|
||||
./build/main # run (Linux/macOS)
|
||||
./build/main.exe # run (Windows)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user