Adding in new test dir to Intellij isn't working

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.


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

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