[#4567] Re: What's the biggest Ruby development? — Aleksi Niemel<aleksi.niemela@...>

Dave said:

18 messages 2000/08/23
[#4568] Q's on Marshal — Robert Feldt <feldt@...> 2000/08/23

[#4580] RubyUnit testcase run for different init params? — Robert Feldt <feldt@...> 2000/08/25

[#4584] Re: RubyUnit testcase run for different init params? — Dave Thomas <Dave@...> 2000/08/25

Robert Feldt <feldt@ce.chalmers.se> writes:

[#4623] Re: RubyUnit testcase run for different init params? — Robert Feldt <feldt@...> 2000/08/28

On Sat, 26 Aug 2000, Dave Thomas wrote:

[#4652] Andy and Dave's European Tour 2000 — Dave Thomas <Dave@...>

24 messages 2000/08/30
[#4653] Re: Andy and Dave's European Tour 2000 — matz@... (Yukihiro Matsumoto) 2000/08/30

Hi,

[#4657] Ruby tutorials for newbie — Kevin Liang <kevin@...> 2000/08/30

Hi,

[ruby-talk:4662] Re: RubyUnit testcase run for different init params?

From: Robert Feldt <feldt@...>
Date: 2000-08-30 08:13:46 UTC
List: ruby-talk #4662
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



In This Thread