Running Tests for Gradle projects with filtered resources

I have a grade project that has a customized processTestResources task that does some property filtering using ReplaceTokens. When running tests on the gradle command line, processTestResources is run and then the output directory is put on the classpath for the test. If I want to run a test from within Intellij, perhaps for debugging purposes, Intellij uses a different otuput path (per the JetGradle plugin configuration) and does not honor the gradle configurations.

Is there any way to run tests inside of Intellij and benefit from gradle's build configurations? Is there any way to get, at a minimum, Intellij to use the same otuput directories as gradle so that processed resources can be recognized on the classpath when running tests?

1 comment
Comment actions Permalink


Could you create corresponding ticket at IJ tracker and attach a sample project to it?



Please sign in to leave a comment.