Adding in new test dir to Intellij isn't working

(Phil Swenson) #1

We have an extension to the default directory layout of gradle. Here is a screenshot of our directory structure: Notice we have added an “integTest” directory next to the standard “test” directory.

I looked here for guidance: and I added in this snippet in the module in question:

idea {
    module {
        testSourceDirs += file('integTest')

I see no difference in the generated .iml file.


(Peter Niederwieser) #2

Non-existent directories aren’t added to the ‘.iml’. And according to your screenshot, the directory is ‘src/integTest/java’ …

(Phil Swenson) #3

thanks! I didn’t know what the source dir was relative too. works great.