Can I add a new default Test Resources Root?

Answered

Hi all,

At work, we always save our integration tests under src/integrationtest/java, with the resources under src/integrationtest/resources.

Our maven projects do have this directory structure set up.

IntelliJ always marks the java folder as a Test Source folder, but I always have to manually mark the resources folder (in Project Structure > Modules > Content Roots). If I forget, tests fail.

It's annoying. Is there a way to teach IntelliJ to mark that folder by default as a Test Resources Folder if it is present?

Brgrds,

Christian

1 comment
Comment actions Permalink

How is your custom test resources folder defined in pom.xml? Can you share a sample project to reproduce it?

0

Please sign in to leave a comment.