[feature] Add ability to pass arguments to ctest in conan.tools.cmake.CMake.test #10562
Closed
1 task done
Labels
Milestone
The
CMake.test()
interface inconan.tools.cmake
is much more limited in comparison to that ofconans.CMake.test()
. Inconan.tools.cmake.CMake
(the new version) we have the following definition:Whereas the old implementation, in
conans.CMake
was:Specifically, it looks like the
args
keyword argument has been removed from the interface of bothtest()
and_build()
. This is limiting, because I want to be able to customize the way my unit test output displays for greater granularity so that I can see which specific tests failed and what the error was - mostly by passing the-V
flag for additional verbosity, but in principle I think the ideal case here would be to be able to utilise any of thectest
command line options.Is there a reason this has been removed in the new interface, and if not, can it be re-added?
For completeness, the way I have been invoking unit tests in my pre-conan 2.0 recipes has been:
The text was updated successfully, but these errors were encountered: