How do I mark all groovy folders as test roots?

Answered

My folders structure looks like this:

src

--main

--test

----groovy

----java

----resources

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?

4 comments
Comment actions Permalink

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

0
Comment actions Permalink

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

0
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.

 

0

Please sign in to leave a comment.