You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, the CMake helper has a test() method that uses the test/RUN_TESTS target for running tests. However, CTest has a lot of additional options that cannot be configured with just environment variables (see https://cmake.org/cmake/help/latest/manual/ctest.1.html).
For example, it does not seem possible to set the --output-junit parameter that way. But there are a lot more parameters that cannot be used, e.g. excluding and include tests, repeated runs, etc.
I think it would be nice to have an additional ctest() method that uses CTest directly instead of the limited method above. It should be possible to use presets anyway, so calling e.g. ctest --preset conan-debug on the command already starts CTest with the correct preset.
Have you read the CONTRIBUTING guide?
I've read the CONTRIBUTING guide
The text was updated successfully, but these errors were encountered:
Thank you for pointing out a use case where the recommended approach (environment variables) is not suitable.
Will discuss this with the team to try and improve the interface to cover this.
What is your suggestion?
Right now, the
CMake
helper has atest()
method that uses thetest
/RUN_TESTS
target for running tests. However, CTest has a lot of additional options that cannot be configured with just environment variables (see https://cmake.org/cmake/help/latest/manual/ctest.1.html).For example, it does not seem possible to set the
--output-junit
parameter that way. But there are a lot more parameters that cannot be used, e.g. excluding and include tests, repeated runs, etc.I think it would be nice to have an additional
ctest()
method that uses CTest directly instead of the limited method above. It should be possible to use presets anyway, so calling e.g.ctest --preset conan-debug
on the command already starts CTest with the correct preset.Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: