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?
请先登录再写评论。
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.
No actually in this case it extends ActionMailer::TestCase. But I have the same issue with other tests which extend ActiveSupport::TestCase.
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).
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?
Nico, RubyMine requires ruby-debug-base19x (notice x on the end), which contains many important fixes
Hi Dennis, installed that gem (via gemfile) and get the same error... Do I have to restart Ruby Mine?
Hi Nico, you don't need to add any debug related gems to the Gemfile, just let RubyMine install them automatically
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!