IClion issue with Gtest and Catch unit tests
All,
I'm using CLion 2019.2.5 and somehow the feature to run unit tests from within CLion does not work anymore (it used to work).
When I try to run a unit test application CLion builds it but does not start it, does not show the run window, etc. I tried many options. I also edited/changed the run configuration to exclude the 'build' step and have the 'Prepare test run' step only. When I now try to run the unit test application nothing happens. As said, it used to work, however I can't see any setting how I could have disabled this - can somebody shed some light on this? Some specific configuration? I think it stopped working after upgrading to 2019.1 or so.
I'm using Gtest as well as Catch frameworks (in different projects) and the behaviour is the same for both frameworks.
Please sign in to leave a comment.
I experienced the same issue in 2019.3.1 and 2019.3.2. First occurrence was also after an upgrade (to 2019.3.2). Downgrading resolved it for a while, but the issue even started occurring back on 2019.3.1 again. Removing the 'Prepare Test Run' step from 'Before launch' does cause the window to show again, but causes all tests to be ran rather than just the requested one.
Digging a bit further, it appeared to be related to https://youtrack.jetbrains.com/issue/CPP-18169. Disabling the Kotlin/Native plugin solved the issue for me
Hello!
Timon, thanks for sharing the result of the investigation.
https://youtrack.jetbrains.com/issue/CPP-18169 should be fixed in the next CLion 2019.3 update (expected this week). Please stay tuned.