nicksieger/ci_reporter — Issue #50: CI_reporter problem with Ruby 1.9.3-p0 on Debian (squeeze)
Author: PiotrNestor
Created: 2012-02-09 07:51:27+00:00
State: open

The following problem occurs when using the ’ci_reporter’ (version 1.7.0) with unit-test and Ruby 1.9.3:
uninitialized constant Test::Unit::UI::Console::Diff

Ruby stack output:
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/test-unit-2.4.5/lib/test/unit/ui/console/testrunner.rb:439:in `': uninitialized constant Test::Unit::UI::Console::Diff (NameError)
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/test-unit-2.4.5/lib/test/unit/ui/console/testrunner.rb:17:in `'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/test-unit-2.4.5/lib/test/unit/ui/console/testrunner.rb:16:in `'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/test-unit-2.4.5/lib/test/unit/ui/console/testrunner.rb:15:in `'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/test-unit-2.4.5/lib/test/unit/ui/console/testrunner.rb:14:in `'
from /usr/local/rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
from /usr/local/rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/ci_reporter-1.7.0/lib/ci/reporter/test_unit.rb:7:in `'
from /usr/local/rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/ci_reporter-1.7.0/lib/ci/reporter/rake/test_unit_loader.rb:6:in `'
from /usr/local/rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
from /usr/local/rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
…

I’ve tried with the suggestion presented in 'http://bugs.ruby-lang.org/issues/3561' using the following require lines in the test case:

require 'rubygems'
gem 'test-unit'
require 'test/unit'
require 'ci/reporter/rake/test_unit_loader'

But on Linux Debian (squeeze) it doesn’t work and fails with the above error/stack trace.