Minitest Framework detected, can't load full test framework

New to RubyMine, I am trying to get set up to test some simple test code for Ruby only (no Rails).

I have test-unit gem installed, but when I attempt to run a simple test 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."


It appears that with minitest, I will just get text dump of results, not tie into the IDE GUI.  The test-unit gem IS installed for my project.
What is the meaning of "activate it on runtime"?
Any clues how to get this to work?

0
37 comments
Avatar
Permanently deleted user

Using bundle exec in the console gives me the same output, no tests are run:

$ bundle exec ruby -Itest -Ilib test/unit/mailer_test.rb -n=test_welcome
Loaded suite test/unit/mailer_test
Started




Finished in 0.000106 seconds.


0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
0% passed


0.00 tests/s, 0.00 assertions/s



In my Test config in Ruby Mine bundler is automatically ticked. I can't untick it. It says:

Bundle exec is enabled for compatibility with graphical test runner.

Does your test helper requires smth from "minitest" folder? Or does your tests extends Minitest::TestCase instead of Test::Unit::TestCase?


No actually in this case it extends ActionMailer::TestCase. But I have the same issue with other tests which extend ActiveSupport::TestCase.
0

Try to debug your test in RubyMine, put a breakpoint in minitest/unit.rb (which is located somewher in ruby 1.9.x SDK or in minitest gem, you can use go to file feature in RubyMine to find it).

0
Avatar
Permanently deleted user

Okay, there comes the next issue: RubyMine says I need to install the ruby-debug-base19 gem, although it is already in my gemfile.
Maybe it's the same issue like with the unit-test gem not found? Well, both gems are in a group called :test, but I would expect
Ruby Mine to recognize that, as this is common practice, so that shouldn't be the issue?

0

Nico, RubyMine requires ruby-debug-base19x (notice x on the end), which contains many important fixes

0
Avatar
Permanently deleted user

Hi Dennis, installed that gem (via gemfile) and get the same error...  Do I have to restart Ruby Mine?

0

Hi Nico, you don't need to add any debug related gems to the Gemfile, just let RubyMine install them automatically

0
Avatar
Permanently deleted user

I switched to minitest now and all is fine so far - i can run single tests. Looking forward to Minitest support in RubyMine. :)

Thanks for your help guys!

0

Please sign in to leave a comment.