I have an assignment in which I need to club JUnit and Emma with Ant. I have created a small library management application using Struts framework. I have also written JUnit testcases for the same. My guide does not allow me to test and analyze code coverage within Eclipse. He wants me to start from the basic.
I don't know where to place the JUnit test codes and the required JAR files in Ant's installation directory. I placed all the JAR files (junit.jar, emma.jar, emma_ant.jar, ant-junit.jar) in the root (C:\Ant) directory. My build file is located in C:\Ant\docs\manual. The Ant's installation was successful. And I also need some help in creating tasks in build file.
PS: I have to complete this assignment by today.
The greater danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it
I don't know whether I have added Emma and Junit successfully or not!
I put junit.jar, emma.jar, emma_ant.jar, ant-junit.jar in the root (C:\Ant) directory. Are these the only required JAR's to run JUnit and Emma? or I need something else. I have my build.xml file at the location C:\Ant\docs\manual. I copied that too to the root directory. Have I installed Emma and Junit correctly?
1.) Ant already has JUnit (see your c:/ant/lib directory)
2.) Emma is a library you add on a _per project_ basis, so it should be added to your project's source tree
3.) Your build.xml should be a _per_ project_ as well, it does not need to be in the c:\Ant directory structure at all