ctest: presets versus dashboard client mode
I'm currently migrating to cmake presets (and they really are great!).
Now I'm having some presets for the CI and I wanted to add coverage.
e.g.: The CI configure presets sets the build dir and --coverage
. Now I wanted to run ctest with ctest --preset linux-ci -T Coverage
after running the tests. When using the command with the -T
option, the build dir is not respected and ctest is using the current terminal working dir. If I'm only using ctest --preset linux-ci
then ctest respects the build dir option and works as expected.
What am I expecting?
Consistent behavior. When using ctest --preset -T Coverage
it should also use the specified build dir from the preset.
Edited by Brad King