Google Test generation in (test) header file

I'm experimenting with CLion, especially since I like to use google test for unit testing.

My usual test structure is a "<ClassName>_TEST.h" file that will have all the tests for some given class; then including this header file in the main.cpp for the google test.

But CLion won't generate Tests in these header files automatically. It will have the option to add tests in the main.cpp file, but not in these headers. Is there a way to force that behaviour? Something I'm missing?

Please sign in to leave a comment.