CTest: --show-only runs CTEST_CUSTOM_POST_TEST and shows its output
When I have gcovr
configured in the CTEST_CUSTOM_POST_TEST
list, the ctest show-only=json-v1
output is corrupted - gcovr result is appended at the end of JSON content, disabling my unit-test IDE plugins (they report invalid JSON content).
It is wierd that during show only, those CTEST_CUSTOM_POST_TEST
are executed and feed to stdout.
Or maybe there is an option for handling this?