uninitialized constant Test::Unit::UI::TestRunnerMediator::TC_TESTCOUNT (NameError)

Similar to an existing discussion, but on Rails 3.1 with Ruby 1.9.2, I receive this error when trying to run tests from within RubyMine 3.2.4. Here's the full error:

/Applications/RubyMine 3.2.4.app/rb/testing/patch/testunit/test/unit/ui/teamcity/testrunner.rb:131:in `attach_to_mediator': uninitialized constant Test::Unit::UI::TestRunnerMediator::TC_TESTCOUNT (NameError)
 from /Applications/RubyMine 3.2.4.app/rb/testing/patch/testunit/test/unit/ui/teamcity/testrunner.rb:91:in `start'
 from /Users/stump/.rvm/gems/ruby-1.9.2-p290@rails31/gems/test-unit-2.4.0/lib/test/unit/ui/testrunnerutilities.rb:24:in `run'
 from /Applications/RubyMine 3.2.4.app/rb/testing/runner/tunit_in_folder_runner.rb:151:in `block in <top (required)>'
 from /Applications/RubyMine 3.2.4.app/rb/testing/runner/tunit_in_folder_runner.rb:132:in `each_object'
 from /Applications/RubyMine 3.2.4.app/rb/testing/runner/tunit_in_folder_runner.rb:132:in `<top (required)>'
 from -e:1:in `load'
 from -e:1:in `<main>'


I tried regenerating the scripts that run the task but that didn't work. Any thoughts? Suggestions on how to fix?

Thanks!

Please sign in to leave a comment.