Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant's junitreport sucks

 
Jorge Bendahan
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a question?
 
Rodrigo Lopes
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CruiseControl will show you a whole host of historical information. Might be easier than hand crafting your own solution.
 
Jorge Bendahan
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'll take a look at cruise control.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic