The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Making JUnit friendlier to AgileDox

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Joe Walnes

Posts: 151
Nickname: jwalnes1
Registered: Aug, 2003

Joe Walnes, "The Developers' Coach" from ThoughtWorks
Making JUnit friendlier to AgileDox Posted: Jan 30, 2004 3:59 AM
Reply to this message Reply

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

Advertisement

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

Topic: Strongly typed, weakly understood Previous Topic   Next Topic Topic: Another new blogger

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use