Custom JUnit Results
1 posts in topic
Flat View  Flat View

Posted By:   Shay_Thompson
Posted On:   Friday, February 10, 2006 06:47 PM

Hi, I'm trying to figure out how I could add extra information to my JUnit results. What I want is to have things like a Description of the test suite, which could be added to the JUnit test via something like a metadata tag. Then, when I run the tests and generate the results into an XML file, it would add that description to the results file.

Is this possible? I would like to add a few more fields than that but it's one example.


Re: Custom JUnit Results

Posted By:   Anonymous  
Posted On:   Monday, February 13, 2006 06:22 AM

Each assert() method is available with two signature: one with and one without a description message.

assertTrue( condition );
assertTrue( messageForWrongCondition, condition );
About | Sitemap | Contact