cmake -GNinja ..
ninja check
Check no report is generated.
cmake -GNinja .. -DENABLE_JUNIT_REPORT=ON
ninja check
Check the report are generated.
ninja clean
Check the `test/junit` directory no longer exist.
Edit a test from the bitcoin test suite to make it fail:
ninja -k0 check
Ensure all the tests including the failure are correctly reported.
Check the return code is non zero.