On Wed, 30 Aug 2000, Robert Feldt wrote: > > Based on the previous discussion and the solution I ended up using I'd > suggest the following change to RubyUnit: > > * When printing out info about a failure RUNIT::CUI:TestRunner should > print not only the file name and line number but the name of the class. > >... > Sorry I forgot to include the patch (rubyunit_0-2-3_testresult_rb_patch): 70a71,76 > def insert_class_name(last_exception_backtrace, test) > tns = test.type.inspect.split("::") > last_exception_backtrace[0] += " (" + tns[tns.length-1] + ")" > last_exception_backtrace > end > 77c83 < add_failure($@, $!) --- > add_failure( insert_class_name($@, t) , $!) 79c85 < add_error($@, $!) --- > add_error( insert_class_name($@, t) , $!) Regards, Robert