CTest Grouping
I use CppUTest as I work with small embedded hardware.
I would like to know if there is a way, that I can group CTests in CLion. Right now I have one massive lists of all tests.
Whole story:
Unfortunately, there isn't the same support for CppUTest as there is for Google Test.
So, I had to use CMake with CTest to make them work in CLion.
That works fine where diffrent groups of tests run in diffrent executables.
Each executable was one CTest enty.
Which is fine, but I wanted to have more ganular tests in CLion.
So, I use a post-build test-recovery that adds each single test in my CTest files.
That works fine too, but now I have a massive list of tests in CLion, which is not amazing.
I tried to add Labels (CTest properties), but that didn't help in CLion.
SO, is there a way to group CTests that they look as nice and neat as Google Tests (tests grouped).
I would obviously configure that in my CMake files. Is there a way, that CLion understands??
Please sign in to leave a comment.
Did you find a solution to this? I think the best I will be able to do is have a flat list of many tests but if you start typing in the test view panel, it can filter on the prefix to view only the group of interest… I wish though there was a recognized separator in the test name like “::” or “/” that would nest it in the UI… I think I saw a mention that vscode does this.