How do I mark all groovy folders as test roots?


My folders structure looks like this:







Idea do NOT mark groovy folders as test roots automatically after importing the project, so I cannot look through groovy test classes. I can mark up all groovy folders manually, but I have so many modules in my project that I want to avoid this activity.


A question is: how can I setup Idea to mark groovy test folders as test roots automatically?

Comment actions Permalink

Is that a Maven project? What do you import it from?

Comment actions Permalink

Right Click on the groovy folder , you will find "Mark Directory As", select "Test Sources Root".

Comment actions Permalink

Serge, its maven project.

Sudheer, I am aware of this way, but I have so many modules that I want to make it automatic.



Please sign in to leave a comment.