Intelli-J无法运行spock测试? (无法附上测试记者...) [英] Intelli-J can't run spock tests? (Unable to attach test reporter...)

查看:144
本文介绍了Intelli-J无法运行spock测试? (无法附上测试记者...)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在1.3.7中使用grails spock插件。我可以通过 grails test-app:spock 从终端运行测试,但是当我尝试从Intelli-J内运行ControllerSpec测试时,得到无法附加测试记者测试框架或测试框架意外退出

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.

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

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

推荐答案

是的,我有和我没有任何问题。唯一要记住的是,当你右键点击你的Spec类时,选择正确的intelliJ转轮。所以:

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. 右键点击课程
  2. 运行

  3. 选择jUnit图标,而不是grails图标

这篇关于Intelli-J无法运行spock测试? (无法附上测试记者...)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆