When running "test" task, error about missing Test::Unit::UI::TestRunnerMediator::TC_TESTCOUNT occurs
Hello,
when running the "test" task on my JRuby projects, I get the following exception:
D:/Programme/jruby-1.3.1/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:105:in `const_missing': uninitialized constant Test::Unit::UI::TestRunnerMediator::TC_TESTCOUNT (NameError)
from D:/Programme/RubyMine 2.0.1 RC2/rb/testing/patch/testunit/test/unit/ui/teamcity/testrunner.rb:261:in `attach_to_mediator'
from D:/Programme/RubyMine 2.0.1 RC2/rb/testing/patch/testunit/test/unit/ui/teamcity/testrunner.rb:181:in `start'
from D:/Programme/jruby-1.3.1/bin/../lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in `run'
from D:/Programme/jruby-1.3.1/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run'
from D:/Programme/jruby-1.3.1/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run'
from D:/Programme/jruby-1.3.1/bin/../lib/ruby/1.8/test/unit.rb:278
D:/Programme/jruby-1.3.1/bin/jruby.bat -I"lib;test" "D:/Programme/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
On my Ruby projects all test are working fine.
I can right-click on a single test and run it with the correct test runner.
Please sign in to leave a comment.
Hi,
Is problem still actual?
Hi,
yes, with RubyMine 2.0.1 I still have the problem.
Specs are working fine with the "spec" task, but for all Test::Unit tests I have to use "Run all in folder".
Do you use "test-unit" gem?
No, I don't.
However, installing it doesn't change the behaviour.
I've filed an issue - http://youtrack.jetbrains.net/issue/RUBY-5752
Sorry, after I detected, that now even the specs aren't running, I viewed the gem list at the command line.
It shows, that I had test-unit 1.2.3 installed, and just installed 2.0.6 over it.
The gem wasn't attachted to the project, why I haven't seen it before...
After uninstalling both versions, everything seems ok...
RubyMine 2.0.2 will be compatible with test-unit gem. May I close the issue?
Hi,
yes, you can close it.