Make test target?
Cmake provides a make test which will run all the executables in a tree that have an add_test in the CMakeLists.txt file. However, while Clion seems to scan all the executable targets in the tree & add a configuration for each one, I don't see a "test" target (that would run make test) or a way to add one.
It is possible to add google test targets for each executable, but I want to be able to run targets from multiple directories/executables in one command from within CLion -- preferably without needing to write a script to execute make test. It would be even better if it were within the test framework, so if any one of the tests fails, I get the UI that shows which one & where & let's me rerun just that test & all that good stuff.
Thanks, Beth
请先登录再写评论。