Getting the @Ignore reason as a RunListener?

Dan Fabulich <[email protected]> Fri, 23 Nov 2007 10:08:40 -0800 (Pacific Standard Time)
Newsgroups gmane.comp.java.junit.devel
Message-ID <[email protected]>
I'm working on improving Maven's support for JUnit 4.  In particular, I'm 
trying to add the "value" (or reason) of the @Ignore parameter to Maven's 
report output.

I'm a bit confused by what I'm seeing, because it doesn't appear to be 
possible to access the reason.  We implement RunListener to get notified 
of @Ignore events, and that method accepts a Description object.  The 
Description's displayName is just the name of the test and its class, e.g. 
"testIgnorable(MyTest)", but no reason is given.

Similarly, calls to RunNotifier.fireTestIgnored are unable to pass 
anything but a Description; no reasons are allowed.

Am I right in thinking that it's impossible for us to report the reason 
why a test was ignored?  If so, what is the point of that value parameter? 
(Just a comment?)

-Dan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/