Intelli-J无法运行spock测试?(无法附加测试记者......)

Ste*_*all 6 grails groovy intellij-idea spock

我正在尝试使用带有1.3.7的grails spock插件.我可以从终端运行测试grails test-app :spock,但是当我尝试从Intelli-J中运行ControllerSpec测试时,我得到了unable to attach test reporter to test framework or test framework quit unexpectedly.

有没有人通过Intelli-J成功运行grails spock测试?

Han*_*eek 8

是的,我有,我没有问题.唯一要记住的是当你右键单击Spec类时,选择正确的intelliJ runner.所以:

  1. 右键单击类
  2. 选择jUnit图标,而不是grails图标