ruby-on-rails – RubyMine单元测试 – 测试框意外退出

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – RubyMine单元测试 – 测试框意外退出前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当我尝试从 RubyMine中运行测试时,我有一个问题.但是奇怪的是,当我从命令行运行测试时它工作正常.

“测试框架意外退出

/usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Itest /Users/sabour/Desktop/EIP/project/test/controllers/categories_controller_test.rb
Testing started at 1:39 AM ...
Run options: --seed 14336

# Running tests:

/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228: warning: nested repeat operator + and ? was replaced with '*'
...

Finished tests in 2.554592s,1.1744 tests/s,8.6119 assertions/s.

3 tests,22 assertions,0 failures,0 errors,0 skips

Process finished with exit code 0

也许问题来自于这一行?

/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228: warning: nested repeat operator + and ? was replaced with ‘*’ …

模式:测试脚本
使用预加载服务器:无
Ruby参数:-e $stdout.sync = true; $stderr.sync = true; load($0 = ARGV.shift)-Itest
Ruby SDK:项目

但我希望有这样的东西:

谢谢

解决方法

我有同样的问题,这是由于不安装(全球?)测试库的红宝石宝石.例如,对于最小的测试框架(您没有指定使用哪个框架),只需从命令行运行:
gem install minitest
gem install minitest-reporters

解决了我的问题.

原文链接:https://www.f2er.com/ruby/272756.html

猜你在找的Ruby相关文章