Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RubyMine Unit tests - Test Framework quit unexpectedly

Tags:

When I try to run the tests from within RubyMine I have an issue. But what is strange is that it work fine when I run the tests from the command line.

"Test framework quit unexpectedly"

enter image description here

/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 

Maybe the problem come from that line ?

/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 '*' ...

Mode: Test script Use pre-load server: none Ruby arguments: -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Itest Ruby SDK: project

But I would love to have something like this:

enter image description here

Thank you

like image 846
user2037696 Avatar asked Jul 04 '14 08:07

user2037696


1 Answers

There is a nice tutorial for setting up RubyMine tests in their online help, which helped me resolve the same problem as you describe (for Test::Unit-style tests). Basically you need to include the minitest and minitest-reporters gems into your project and add a call to use the new format of tests reporting:

# Gemfile group :test do   gem 'minitest'   gem 'minitest-reporters' end  # test/test_helper.rb require 'minitest/reporters' MiniTest::Reporters.use! 

Take a look at the tutorial for more options.

like image 96
Matouš Borák Avatar answered Sep 23 '22 16:09

Matouš Borák