Ant with JUnit junitreport BUILDFAILED junit does not exist
I was working with JUnit and trying to build a junit report using ants command line tool after export the ant build file on the JUnit test project in Eclipse, however, the following command line running in the test projects root directory (e.g., "D:eclipse_jee_projHelloWorldTests") threw out an error:
> ant -buildfile build.xml junitreport
BUILD FAILED
D:eclipse_jee_projHelloWorldTests uild.xml:137: D:eclipse_jee_projHelloWorldTestsjunit does not exist.
Total time: 0 seconds
The problem was easily fixed by creating a "junit" folder under the projects root directory " D:eclipse_jee_projHelloWorldTests" (Note that the individual test builds must be run first, otherwise, the junitreport will generate index.html in "junit" folder indicating no test coverage).