Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 944
Stefan Kendall Avatar asked Mar 30 '12 14:03

Stefan Kendall


1 Answers

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
like image 173
Hans Westerbeek Avatar answered Oct 01 '22 22:10

Hans Westerbeek