Test::Unit broken in 3.2
Hi,
I just updated to 3.2 and my unit tests doesn't work any more. They work in 3.1.1 and from command line.
I use the following gems:
shoulda (2.11.3)
test-unit (2.3.0)
test-unit-coverage (0.1.1)
test-unit-full (0.0.3)
test-unit-notify (0.3.0)
test-unit-rr (1.0.1)
test-unit-runner-failfast (0.0.2)
test-unit-runner-fox (0.0.1)
test-unit-runner-gtk2 (0.0.2)
test-unit-runner-tk (0.0.1)
Exception message: uninitialized constant Test::Unit::AutoRunner::RUNNERS
/Applications/RubyMine 3.2.app/rb/testing/patch/testunit/test/unit/autorunner.rb:30:in `<class:AutoRunner>'
/Applications/RubyMine 3.2.app/rb/testing/patch/testunit/test/unit/autorunner.rb:29:in `<module:Unit>'
/Applications/RubyMine 3.2.app/rb/testing/patch/testunit/test/unit/autorunner.rb:28:in `<module:Test>'
/Applications/RubyMine 3.2.app/rb/testing/patch/testunit/test/unit/autorunner.rb:27:in `<top (required)>'
Any suggestions?
Thanks and Regards
Meik
Please sign in to leave a comment.
Hi,
Which Ruby version do you use? 1.9.x ? Does "Libraries" node in project view contain "test-unit" gem?
Hi Roman,
$ ruby --version
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.4.0]
> Does "Libraries" node in project view contain "test-unit" gem?
It contains test-unit, but I can't find test-unit-full.
If I look at the RubyGem Environment (Tools>Show Gem Environment) the GEM_PATH contains the directory where test-unit-full is installed.
Thanks for your help
Meik
Do you use bundler? Could you disable all test-unit-* gems except test-unit and try to run test. More over gems:
test-unit-runner-failfast (0.0.2)
test-unit-runner-fox (0.0.1)
test-unit-runner-gtk2 (0.0.2)
test-unit-runner-tk (0.0.1)
test-unit-full (0.0.3)
provide replacement for default console runner and RubyMine also replaces default runner, so it may lead to conflicts.
I've created a sample project. Please download it, correct Ruby sdk settings, run bundle install and the launch "foo_test" run configuration. All should work.
Attachment(s):
test_unit_230.zip
Thanks a lot for pushing me in the right direction. I haven't used bundler for the project. After I set it up and added the gems everything worked. Also your example was very helpful.
Cool, develop with pleasure!