Search code examples
intellij-ideagradleintellij-14

IntelliJ 14 Gradle task in Test Runner


Upgraded to IntelliJ 14.0.1 One of the big new features I was looking for:

"If you run tests via a Gradle task, the IDE offers you the standard Test Runner instead of the console output." (Source: https://www.jetbrains.com/idea/whatsnew/#buildTools)

I right click on the Gradle Task to run our Integration Tests:

enter image description here

However, I see the results of the test still going to console output, not to the Test Runner:

enter image description here

Has anyone been able to get this new feature in IntelliJ IDEA 14 to work?

Thank you in advance,

Philip


Solution

  • Looks like IntelliJ looks for a task named "test" rather than a task of type Test.

    https://github.com/JetBrains/intellij-community/blob/master/plugins/gradle/src/org/jetbrains/plugins/gradle/execution/test/runner/GradleTestsExecutionConsoleManager.java#L191