Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Ant, Maven and Other Build Tools and the fly likes ant's junitreport sucks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant Watch "ant New topic
Author

ant's junitreport sucks

Jorge Bendahan
Ranch Hand

Joined: Apr 11, 2008
Posts: 82
Sorry for the title, it's just that i've done this really nice app for automated testing and my teacher asked me if i could display the test execution results on html or pdf format, i looked into this, and seemed like the only option is to use the junitreport ant task, i'm struggling with this for weeks, the reports generated dont give enough information and also it's quite ugly too, one of the things i think is missing is the lack of info where it comes to know why the test fail, like the command line runner output, another thing is that i want to keep track of the results like a history but the task is overwritting the past results. JunitReport just sucks.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30789
    
157

JUnit Report isn't meant to do history. It does tell you why tests failed - you just have to drill down to get to it.

As for the "ugly", you can pass a stylesheet to it and make the report look "pretty" in any way you want.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30789
    
157

Moving to our Ant forum.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Do you have a question?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Rodrigo Lopes
Ranch Hand

Joined: Feb 29, 2008
Posts: 119
You could dynamically set the report outputdir, and set a different value for each time you run your tests. This way you can keep the history of your tests.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

CruiseControl will show you a whole host of historical information. Might be easier than hand crafting your own solution.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Jorge Bendahan
Ranch Hand

Joined: Apr 11, 2008
Posts: 82
i'll take a look at cruise control.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ant's junitreport sucks