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: http://cl.ly/MQNc Notice we have added an “integTest” directory next to the standard “test” directory.

I looked here for guidance: http://gradle.org/docs/current/dsl/org.gradle.plugins.ide.idea.model.IdeaModule.html 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.

Thoughts?

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.