Search code examples
grailsintellij-ideagroovyspock

Intelli-J can't run spock tests? (Unable to attach test reporter...)


I'm trying to use the grails spock plugin with 1.3.7. I can run tests from the terminal via grails test-app :spock, but when I try to run ControllerSpec tests from within Intelli-J, I get unable to attach test reporter to test framework or test framework quit unexpectedly.

Has anyone run grails spock test successfully through Intelli-J?


Solution

  • Yes I have and I have no problems with it. The only thing to remember is that when you right-click your Spec class, to select the right intelliJ runner. So:

    1. Right click class
    2. Run
    3. Select the jUnit icon, NOT the grails icon