I could not find a way to do this using the ctest parameters, but this is doable using the make test rule, which is associated with ctest.
In the Makefile generated by cmake in your build folder, you can find the rule:
#Special rule for the target test test: @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." /usr/bin/ctest --force-new-ctest-process $(ARGS) .PHONY : test
make provides the parameter you want to use with -C /path/to/build_directory/ , and you can add any ctest parameters with ARGS='your ctest options here'
For example, from any directory on your system you can write:
make test -C /path/to/build_folder ARGS='-R SpecificTestIWantToRun -VV'
or
cmake --build <bld_directory> --target test -- ARGS="<ctest_args>"
source share