“Generate Unit Test” Option Missing in CLion for C++ Projects

Answered

Hey everyone,

I’m running into an issue where the “Generate Unit Test” option doesn’t show up in CLion for any of my C++ projects. According to the official CLion documentation, this feature should be available, but on my setup, the option simply isn’t there — not in the right-click menu, not under Code > Generate, and not via Alt+Insert.


There aren’t really any steps to reproduce since it’s missing from the start. I just open a C++ project, try to use the Generate menu, and the “Generate Unit Test” entry is nowhere to be found.


I do have GoogleTest configured and working in the project, so I don’t think it’s related to the test framework setup.

Has anyone else experienced this or found a workaround?

Thanks in advance!

 

0
1 comment

Hello!

This feature is not yet available in the CLion Nova engine: https://youtrack.jetbrains.com/issue/CPP-40220/CLion-Nova-code-generation-options-for-Google-tests-are-not-available. Feel free to comment or upvote the issue. Please see this article if you are not familiar with YouTrack.

0

Please sign in to leave a comment.