NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

NB 7.x Ruby plugin Run Test fails if test has skip/omit

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
PiotrNestor



Joined: 17 Feb 2012
Posts: 1

PostPosted: Fri Feb 17, 2012 12:41 pm    Post subject: NB 7.x Ruby plugin Run Test fails if test has skip/omit Reply with quote

NB 7.x Ruby plugin - Run Test fails if test has skip/omit
Ruby 1.9.3
The test-unit gem is v. 2.4.5
NB Ruby plugin v. 0.111

The Run Test result presentation fails with:
undefined method `exception' for #<Test::Unit::Omission:0x1fd8860>

An 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

Do you know where the plugin should handle omitted tests?
Back to top
indancesky



Joined: 02 Aug 2012
Posts: 2

PostPosted: Thu Aug 02, 2012 6:26 am    Post subject: Reply with quote

class TC_MyTests < Test::Unit::TestCase

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

Rc Helicopters Reviews|Rc Helicopter
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo