Console runner requires diff #25

Closed
coolo opened this Issue Apr 27, 2012 · 2 comments

2 participants

@coolo

We use rails 3.2, ci_reporter and test-unit 2.4.8 and have the problem I can't describe better as this:

** Execute test:integration
/usr/bin/ruby1.9 -I"lib:test" -I"/usr/lib64/ruby/1.9.1" "/usr/lib64/ruby/1.9.1/rake/rake_test_loader.rb" "test/integration/*/_test.rb" /usr/lib64/ruby/gems/1.9.1/gems/ci_reporter-1.7.0/lib/ci/reporter/rake/test_unit_loader.rb
/usr/lib64/ruby/1.9.1/rake/ext/module.rb:36:in const_missing': uninitialized constant Test::Unit::UI::Console::Diff (NameError)
from /usr/lib64/ruby/gems/1.9.1/gems/test-unit-2.4.8/lib/test/unit/ui/console/testrunner.rb:460:in
module:Console'
from /usr/lib64/ruby/gems/1.9.1/gems/test-unit-2.4.8/lib/test/unit/ui/console/testrunner.rb:18:in <module:UI>'
from /usr/lib64/ruby/gems/1.9.1/gems/test-unit-2.4.8/lib/test/unit/ui/console/testrunner.rb:17:in
module:Unit'
from /usr/lib64/ruby/gems/1.9.1/gems/test-unit-2.4.8/lib/test/unit/ui/console/testrunner.rb:16:in <module:Test>'
from /usr/lib64/ruby/gems/1.9.1/gems/test-unit-2.4.8/lib/test/unit/ui/console/testrunner.rb:15:in
'
from /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:59:in require'
from /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:59:in
rescue in require'
from /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:35:in require'
from /usr/lib64/ruby/gems/1.9.1/gems/ci_reporter-1.7.0/lib/ci/reporter/test_unit.rb:7:in
'
from /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in
require'
from /usr/lib64/ruby/gems/1.9.1/gems/ci_reporter-1.7.0/lib/ci/reporter/rake/test_unit_loader.rb:6:in <top (required)>'
from /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in
require'
from /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /usr/lib64/ruby/1.9.1/rake/rake_test_loader.rb:15:in
block in

'
from /usr/lib64/ruby/1.9.1/rake/rake_test_loader.rb:4:in select'
from /usr/lib64/ruby/1.9.1/rake/rake_test_loader.rb:4:in
'
Errors running test:integration!

A require 'test/unit/diff' in the console/testrunner.rb fixes this for me - but I'm not sure why it works without ci_reporter

@coolo

btw: this is ruby 1.9.3 - the /1.9.1 install path is openSUSE rpm specific to avoid making all rpms incompatible on ruby version changes.

@kou kou added a commit that closed this issue Apr 27, 2012
@kou kou Add missing require 'test/unit/diff'
GitHub: fixes #25

Reported by Stephan Kulow. Thanks!!!
de24a8a
@kou kou closed this in de24a8a Apr 27, 2012
@kou
test-unit member

Thanks!
I've fixed it in master!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment