wood burning stoves*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant report generation (junitreport)" Watch "Ant report generation (junitreport)" New topic
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: 3274
    
    5

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: 41132
    
  45
One thing to check would be if the fileset really includes all the files you think it does.


Ping & DNS - my free Android networking tools app
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..

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant report generation (junitreport)
 
Similar Threads
Junit-Ant Building
java.lang.classnotfoundexception in junit report
JUNITReport - Stack Overflow error
ant junitreport - producing html file with no test results
reports in html format