• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant report generation (junitreport)

 
Daryl Fernandez
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, I'm trying to configure ant to generate jUnit report , I was able to create HTML file in my reports folder. but the problem is the html that was generated has no text on summary of the test case performed.

Generating jUnit reports in ANT need xalan jar for transforming XML documents into HTML, I already included xalan.jar in my ANT lib folder.. But still doesn't work..
Any clue or suggestion what might be the cause of the problem? Thanks

Below is the code of my junit report:




BTW, Im using ant 1.8 version.

Thanks in advance..
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Daryl and welcome to Javaranch!

Are you seeing any error messages? Have you tried running ANT in verbose mode? You can often get a hint there as to what is going wrong...
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One thing to check would be if the fileset really includes all the files you think it does.
 
Daryl Fernandez
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the welcome Martijn Verburg

@ Ulf Dittmer
in my fileset "<fileset dir="${dist.dir}">" there is no xml generated by test..

In what i know the every Test classes would make xml. And the xml will be the bases in creation of TESTS-TestSuites.xml to create reports..

Here is what im doing in "test"



 
Daryl Fernandez
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
found the solution..

I put <formatter type="xml"/> and the XML of testCases i needed for TESTS-TestSuites.xml it generated like magic.. hejehe





Thanks Ulf Dittmer and Martijn Verburg for the Help..

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic