Author
Ant report generation (junitreport)
Daryl Fernandez
Greenhorn
Joined: Mar 23, 2010
Posts: 3
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
Joined: Jun 24, 2003
Posts: 3268
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...
Cheers, Martijn - Blog ,
Twitter , PCGen , Ikasan , My The Well-Grounded Java Developer book! ,
My start-up .
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35237
posted Mar 23, 2010 05:08:10
0
One thing to check would be if the fileset really includes all the files you think it does.
Android apps – ImageJ plugins – Java web charts
Daryl Fernandez
Greenhorn
Joined: Mar 23, 2010
Posts: 3
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
Joined: Mar 23, 2010
Posts: 3
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..
subject: Ant report generation (junitreport)