search for: errorcollector

Displaying 1 result from an estimated 1 matches for "errorcollector".

2007 Feb 26
5
Continuing a "specify" block after failure
...file.input.process.should == file.expected end end end The problem with this is that a failure on one file prevents all the others from being tested. What would be the "best practice" way to overcome this shortcoming? The solution I used with Test::Unit was to add an "ErrorCollector" as described here: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/138320 Basically it catches exceptions as they are raised, sending messages to the Test::Unit machinery so that the problems can be counted and reported, but continues processing. Would a similar technique...