Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

How to creat a report from JUnit

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I know how to use JUnit, I always used it only in netbeans and ecplise to see if all the code is conform with the tests. Know I’m building a tool and I want to call external the JUnit testcase and get a nice report from it. But I don’t know how to get a report from JUnit, I’m reading everywhere that is it possible but never see how to do it.

Thanks already for the answers!
 
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you want to dynamically create a jrxml file or you already have one and just want to fill it in with results and display it?
 
Gynnad Paullussen
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

E Armitage wrote:Do you want to dynamically create a jrxml file or you already have one and just want to fill it in with results and display it?



I have nothing, only JUnit tests..
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try integrating your tests with DynamicJasper http://dynamicjasper.com/
They have lots of examples showing how things are done:http://dynamicjasper.com/documentation-examples/how-to-2/
 
Gynnad Paullussen
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

E Armitage wrote:Try integrating your tests with DynamicJasper http://dynamicjasper.com/
They have lots of examples showing how things are done:http://dynamicjasper.com/documentation-examples/how-to-2/



Hmm.. I don't think it is usefull.. I will tell you want my ideas are. I have a Content Management System on my server, I can add plugins to that CMS. And I want to test if the Plugins are working correct in the current version of CMS. So I make a viewtool in the plugins where I will call the tests in the plugin. They will run the tests, but now comes the problem: I want some feedback from that tests. So I need a report from the tests, but it is not just one plugin but 25 or something. So my question is, How can I create the report and How can I merge them together?
 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can create nice reports if you use maven plugins and using Jenkins is also a good idea
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes I agree with the maven plugins. The sure-fire-report one is nice: http://maven.apache.org/plugins/maven-surefire-report-plugin/

I'm now trying to figure out how I got it into my head that you had mentioned something about Jasper reports. My eyes must have added random text into your words.

Kind regards

E Armitage(<-----clearly getting old
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic