0

Is it possible to run all QTests from the CLion Test Runner?

I have a CMake file that creates one target per Test Class, which ends up in several test targets that I can run one by one from CLion, but I haven't figured out how to run them all at once.

CMake has the "test" target, which I can build with "make test" from the test directory, but this target is not listed in CLion.

Damir Porobic
  • 681
  • 1
  • 8
  • 21
  • Clion is able to run the targets, which have relevant executables. Cmake's "test" targets is its own, i.e. system. It has no executable, therefore Clion cannot run it. – Alexey May 01 '18 at 11:46
  • The "test" target is not even listed as one of the targets. Any idea how to mitigate this problem? – Damir Porobic May 01 '18 at 12:26
  • For example, you may write perl script, that runs "make test". Then write custom cmake target (`add_custom_target`) that runs that script. After that, you'll see the target in clion and will be able to run it. But I don't like these confusing difficulties and for me it's still way easier to manually run "make test" via console. – Alexey May 01 '18 at 14:42

0 Answers0