• Post Reply Bookmark Topic Watch Topic
  • New Topic

Generate Junit XML report in Java  RSS feed

 
Gynnad Paullussen
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to generate a XML report in Java. Why in Java and not using Ant? Because I need to call the Junit Tests inside my code because it is dependent from other code and this is the only way.

I'm using the Ant Library and I have now this code:



And I'm getting a XML report, but it is not in the right JUnit format. Because now I can't use it in Jenkins.

This is the format I'm getting:



But I need the normal JUnit format: http://junitpdfreport.cvs.sourceforge.net/viewvc/junitpdfreport/src/resources/examples/testresults/TEST-net.cars.documents.AssuranceTest.xml?revision=1.9&view=markup
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!