For some reason, My ant task is not creating JUNIT's HTML reports? Here are the details..
1) It creates C:\reports directory. It contains some html files including index.html. if I open this HTML file,. it shows zero tests as below. But actually it runs 2 tests successfully. Could you see any problem?
Tests Failures Errors Success rate Time
0 0 0 NaN 0.000
It also creates TESTS-TestSuites.xml. But this xml file is emty
I have chnaged back to Ant 1.6.5, Still unsuccessful. Do you think that JUNIT tester has some suites and some tetsts are added to the suite? Note that I have don't have any suite ..All my tests are individual and run as
Jeanne's response above and the ant manual on JunitReport task indicate that the xml files are generated by the junit task (that you aren't using). So, there aren't any tests to report on in your case.
JUnitReport Merge the individual XML files generated by the JUnit task and eventually apply a stylesheet on the resulting merged document to provide a browsable report of the testcases results.
[ September 26, 2006: Message edited by: Carol Enderlin ]
Joined: Sep 20, 2006
Sure, My reports folder do contain TESTS-TestSuites.xml file created by JUNIT. The contenst of this file is:
OK, but I'm just saying if you don't use the junit task I don't see how you'll get the results you want with junitreport. It may be possible (I don't know), but I don't see anyone jumping in to help with that, although that might get more traction in the testing forum. In this forum, we'd probably be inclined to give an ant-related answer.
I found a tutorial that uses junit + junitreport. [ September 29, 2006: Message edited by: Carol Enderlin ]