|
This post originated from an RSS feed registered with Agile Buzz
by Joe Walnes.
|
Original Post: Making JUnit friendlier to AgileDox
Feed Title: Joe's New Jelly
Feed URL: http://joe.truemesh.com/blog/index.rdf
Feed Description: The musings of a ThoughtWorker obsessed with Agile, XP, maintainability, Java, .NET, Ruby and OpenSource. Mmm'kay?
|
Latest Agile Buzz Posts
Latest Agile Buzz Posts by Joe Walnes
Latest Posts From Joe's New Jelly
|
|
Here's a little trick to make JUnit display your test results in a similar way to AgileDox.
Override TestCase.getName() in your unit test...
public String getName() {
return super.getName().substring(4).replaceAll("([A-Z])", " $1").toLowerCase();
}
... and your test runner results are transformed from this ...

... to this ...

To make this easier, stick it in an abstract TestCase and inherit from that instead.
Read: Making JUnit friendlier to AgileDox