"No tests were found" on new 3.0 project

"No tests were found" always shows up, even for running the most basic test.  I created a new project with one controller, model, and test to verify this problem.

On Snow Leopard 10.6.5, Ruby 1.9.2-p0, RVM 1.1.0, RubyMine 3.0 (build RM-97.125), Rails 3.0.3.

I created a new gemset under rvm.  Then a new rails 3 project in RubyMine, set to run in my new 'interpreter'.

I installed the bundler gem, then ran bundle install.

I created a single controller, model, and test using rails generate scaffold.

The test wouldn't run.  "Error running test_the_truth. RubyMine requires 'test-unit' gem for Ruby SDK >= 1.9. Please attach it."

(And, gosh, that's an awful error in itself.  Why wouldn't your IDE be self-reliant?)

I installed test-unit, both versions 2.1.2 and 1.2.3 (separately).  Either way, the result of running the test was "No tests were found".

And, actually, the console reveals the test was successful:


/Users/cmg/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Itest /Users/cmg/RubymineProjects/TestTest/test/unit/user_test.rb --name=test_the_truth
Testing started at 11:27 PM ...
Loaded suite /Users/cmg/RubymineProjects/TestTest/test/unit/user_test
Finished in 0.057463 seconds.
1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
Test run options: --seed 33855 --name "test_the_truth"
Empty test suite.

Process finished with exit code 0


But the test panel shows failure in red:  No tests were found.

Please help.  This can't be the desired state of things.


Comment actions Permalink

Also, the steps outlined here do not work at all in rails 3 projects:


Initializers and gem loading are completely different now.

Is there an update to this document?

Comment actions Permalink

Hello Christopher,

Thanks, our help is needed to be updated. In case of Ruby 1.9.x you need to include "test-unit" gem in you Gemfile. See details at http://devnet.jetbrains.net/message/5279855#5279855.

Comment actions Permalink

Thanks Roman, 'test-unit' in Gemfile did the trick.

Thanks again,



Please sign in to leave a comment.