• 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:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Ant report generation (junitreport)

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic