File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant report generation (junitreport) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant report generation (junitreport)" Watch "Ant report generation (junitreport)" New topic

Ant report generation (junitreport)

Daryl Fernandez

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

Joined: Jun 24, 2003
Posts: 3275

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

Joined: Mar 22, 2005
Posts: 42965
One thing to check would be if the fileset really includes all the files you think it does.
Daryl Fernandez

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

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..

I agree. Here's the link:
subject: Ant report generation (junitreport)
It's not a secret anymore!