This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Testing and the fly likes reports in html format 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 » Testing
Bookmark "reports in html format" Watch "reports in html format" New topic
Author

reports in html format

swarnaa lathap
Greenhorn

Joined: Mar 14, 2006
Posts: 4
Hii
i am able to generate report in xml format.but not able to generate html format.i given code like below

<target name="test-reports-junit" depends="init,cactus" description="Generate junit test reports">
<mkdir dir="${test.dir}/reports/junit" />
<junitreport todir="${test.dir}/reports/junit">
<fileset dir="${test.dir}/reports/junit">
<include name="TEST-*.xml" />
</fileset>
<report format="frames" {test.dir}/reports/junit" />
</junitreport>
</target>

can anybody help me....
swarna
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
That's what the JUnitReport task does, which you should run after the JUnit task. It reads the XML files and applies stylesheets to them, so that you end up with HTML files.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: reports in html format
 
Similar Threads
JUNITReport - Stack Overflow error
Ant report generation (junitreport)
email junit test result
Cobertura Zero Reports
Testing with cactus and EJB