This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 208550 - Run Test File report/result fails if test is skipped/omitted
Summary: Run Test File report/result fails if test is skipped/omitted
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Testing (show other bugs)
Version: 7.0.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-17 10:45 UTC by PiotrNestor
Modified: 2012-02-17 10:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description PiotrNestor 2012-02-17 10:45:38 UTC
Run Test File result fails if test is skipped/omitted with the following error:
undefined method `exception' for #<Test::Unit::Omission:0x219def0>

Example:

require 'rubygems'
gem 'test-unit'
require 'test/unit'

class TC_MyTests < Test::Unit::TestCase

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

end

Output:
Test-unit version : 2.4.5 loaded
Hello 1
undefined method `exception' for #<Test::Unit::Omission:0x1fd8860>


Finished in 0,01 seconds.
0 tests, 0 failures, 0 errors