Junit test results

Is it possible to include a human readable description of what the test is for? I would like to include the description in the junit html report using junitreport. This would be used to hand off to other developers, qa, and stakeholders.

example....

@Test(description="Makes sure a user cannot log in with a invalid user name or password")
public void testLogInWithInvalidUserNameOrPassword(){
//do stuff
}

sidenote: i'm using NetBeans 6.5

Javadocs

Michael, this may not be what you are looking for, and sorry if I'm being dense, but you can add Javadocs to your JUnit method like you can any Java method:

/**
* This method makes sure a user cannot log on if blah blah
* and more blah blah.
*/
public void testLogInWithInvalidUserNameOrPassword()
{
//do stuff
}

I think you would have to use any standard Javadocs tags, and what limited experience I have with JUnit, you don't take in parameters or return a value so the @param or @return tags would not be appropriate. However, when I run Javadocs on my JUnit classes it adds comments to the Javadocs for those methods that have been annotated as I described.

but...

bashamg,

Thanks, your approach is a better choice as apposed to annotation based. But javaDoc's are not showing in my jUnit reports. I'm currently using the junitreport target in my build.xml and I want to show the html reports to our end users.

You may want to take a look

You may want to take a look at bumblebee:

http://www.agical.com/bumblebee/bumblebee_doc.html