rubyMine'无法将测试报告程序附加到测试框架' [英] rubyMine 'Unable to attach test reporter to test framework'

查看:851
本文介绍了rubyMine'无法将测试报告程序附加到测试框架'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ruby​​Mine'检测到MiniTest框架'错误.

rubyMine 'MiniTest framework was detected' error when running all model tests.

我可以在常规命令行上运行所有模型测试. 例如rake spec:models
当我使用rubyMine时:
我可以运行一次模型测试.
但是,当我尝试在模型中运行所有测试时,我得到了
MiniTest framework was detected. It is a limited version of original Test::Unit framework. RubyMine/IDEA Ruby plugin test runner requires full-featured version of the framework, otherwise default console tests reporter will be used instead. Please install 'test-unit' gem and activate it on runtime.

I can run all model tests at the regular command line. e.g. rake spec:models
When I use rubyMine:
I can run one model test ok.
However when I try to run all tests in model I get
MiniTest framework was detected. It is a limited version of original Test::Unit framework. RubyMine/IDEA Ruby plugin test runner requires full-featured version of the framework, otherwise default console tests reporter will be used instead. Please install 'test-unit' gem and activate it on runtime.

我尝试将'test-unit'添加到我的Gemfile中并重新打包,但现在得到了:

I tried adding the 'test-unit' to my Gemfile and rebundling but now get:

`/home/durrantm/.rvm/rubies/ruby-1.9.2-p180/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) 
  /home/durrantm/Downloads/RubyMine-3.2.3/rb/testing/runner/tunit_in_folder_runner.rb
Testing started at 9:33 AM ...
Work directory: /home/durrantm/Dropbox_not_syncd/webs/3/rubyists/spec/models}
Loading files.... 
=========================================
0 files were loaded.
=========================================
Searching test suites...
=========================================
0 test suites, 0 tests, 0 assertions, 0 failures, 0 errors
Process finished with exit code 0`

注意:funny}在工作目录中.我仍然得到Unable to attach test_reporter to test fraemwork message.

Note: funny } in work directory. I still get the Unable to attach test_reporter to test fraemwork message.

版本: Ubuntu 11 RubyMine 3.2

Versions: Ubuntu 11 RubyMine 3.2

推荐答案

我终于可以使用它了. 通常通过更改菜单下的内容:
运行->编辑配置->单击Rspec->创建新配置.

I finally got this to work. Mostly by changing stuff under Menus:
Run -> Edit configurations -> Click on Rspec -> Create a new Configuration.

对于新配置,请确保specs文件夹指向应用程序规格模型.

For the new configuration made sure specs folder points to the application specs models.

最后一步(实际上使它起作用)是将工作目录(仍在运行/调试配置屏幕上)设置为我的应用程序根目录!

Final step (the one that actually that got it working) was to set the working directory (still on the run/debug configuration screen that is) to be my applications root!

我还要做的另一件事是将gem 'test-unit'添加到Gemfile并将其捆绑在一起.但是,后来的测试(删除它并解开捆绑)表明并不需要它,实际上是使测试在空套件下运行多次(也许尝试使用默认的unit :: test以及运行rspec).

The other thing I had also done was to add gem 'test-unit' to the Gemfile and bundled it of course. However later testing (removing it and unbundling) showed it not to be needed and in fact was making tests run multiple times with empty suites (maybe trying default unit::test as well as running rspec).

这篇关于rubyMine'无法将测试报告程序附加到测试框架'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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