Ruby 1.9.x with a limited version of test::unit
Use the complete version, which is distributed by means of the test-unit gem. If this gem is missing, the test results will be shown in the console, and the test runner UI will only show the error message "No tests were found".
If you want the test runner UI show the tree view of test results, include test-unit gem in your Gemfile.
Rails 2.3.x and test-unit gem
The problem affects all Test::Unit-based testing frameworks. To fix this problem, you have to manually enable the Test::Unit custom reporter, as described below.
- Open for editing the config/environment.rb file, and disable test-unit gem autoload. To do that, modify the environment.rb as follows:
Rails::Initializer.run do |config| ... config.gem 'test-unit', :lib => false ... end - Open for editing the test_helper.rb file, and enable the RubyMine formatter manually. To do that, modify the source code as shown below.
It is important to enable it after environment.rb has been required, but before the require 'test/unit' call.
# test/test_helper.rb ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") # RubyMine if ENV["RUBYMINE_TESTUNIT_REPORTER"] $:.unshift(ENV["RUBYMINE_TESTUNIT_REPORTER"]) $:.uniq! end require 'test_help' # !!! test_helper script loads 'test/unit' ...

comes bundled with