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:
2026-05-09 21:32:58 +02:00
parent 701c644408
commit cd19cc14c0
4 changed files with 32 additions and 9 deletions
+2 -1
View File
@@ -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)
```