From: "robevans" <[EMAIL PROTECTED]>
> PROBLEM 
> -------
> I need meta data about individual tests(think owner,description).
> I could then send reports like: 
> 
>  TEST REPORT
>   SUBJECT AREA 
>      hardware classes 
> 
>        TEST NAME   DESC                        OWNER        STATUS 
>         test_foo   test that foo is working    robevans      OK
> 
> REQUIREMENTS
> -----------
>  * Organize unit tests into subject areas 
>  * Provide meta data about the test(think owner, description,name)
> 
> QUESTION
> --------
>  * Is this supported in PerlUnit already? Where/How? 

No.

>  * Do you have plans to support this notion? 

Sounds like a good idea.

You could implement this by extending the
existing TestRunner. Make it look if a given
test can() the "additionalInfo()" method (just for
example), and if yes, call it to get the additional
info.

Then subclass TestCase to make a new 
base class TestCaseInfo that contains 
the necessary stuff for maintaining and 
printing the Info you need, and make all your
tests inherit from TestCaseInfo. 

Now you can get what you want by running 
your tests with the extended TestRunner.

>  * If you think this is an important feature but don't 
>    have the time to do it your self would you like me 
>    to develop it? 

Yes, definitively. This would be very welcome,
as I think this looks like a common requirement
on larger projects. Thanks for the offer!

Cheers,

Christian Lemburg


_______________________________________________
Perlunit-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/perlunit-devel

Reply via email to