nicksieger/ci_reporter — Issue #51: CI_reporter throws undefined method Test::Unit::Omission
Author: PiotrNestor
Created: 2012-02-09 11:00:02+00:00
State: open

Environment: Ruby 1.9.3-p0, test-unit 2.4.5

When 'omit' is used the CI_reporter fails:
./usr/local/rvm/gems/ruby-1.9.3-p0/gems/ci_reporter-1.7.0/lib/ci/reporter/test_unit.rb:29:in `name': undefined method `exception' for # (NoMethodError)
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/ci_reporter-1.7.0/lib/ci/reporter/test_suite.rb:146:in `block (2 levels) in to_xml'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/ci_reporter-1.7.0/lib/ci/reporter/test_suite.rb:140:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/ci_reporter-1.7.0/lib/ci/reporter/test_suite.rb:140:in `block in to_xml'

The test example:
require 'rubygems'
gem 'test-unit'
require 'test/unit'
require "ci/reporter/rake/test_unit_loader"

class TC_MyTests < Test::Unit::TestCase
def test_01_login
puts "Logged in"
end

def test_02_omit
puts "Hello 1"
omit()
puts "Hello 2"
end

def test_03_logoff
puts "Logged off"
end
end