aspose file tools
The moose likes Testing and the fly likes Junit testing with using Ant build.xml getting failed everything? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "Junit testing with using Ant build.xml getting failed everything?" Watch "Junit testing with using Ant build.xml getting failed everything?" New topic
Author

Junit testing with using Ant build.xml getting failed everything?

Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 361
Hi All,

I am using junit test cases and building the project using ant build but i tried a lot its getting failed. don't know why ?

I have reset the classpth and junit lib as well but its again not working anyways.

Build.xml file is below:


Below is the error i am getting in build console":



I have already put the junit-3.8.2.jar file in java/lib dir.


I have used very simple jubit code top test uisng Ant build. As below .and if i remove the junit file or junit code from ant build my build.xml file runs successfully without any issue.



Still its not picking and some other issue i don't know. Tried to look in google but not found the proper root cause and how to fix this issue.

Please suggest some one your thought.
Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 361
Issus is resolved now..
I have tried to serach form internet and the actual probelm was classpath junit.jar file name was missing in javac/compile target.

I got the solution.

Below code is working fine now and perfect.



Also you can take help from this link.

http://www.vogella.com/articles/ApacheAnt/article.html
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Junit testing with using Ant build.xml getting failed everything?
 
Similar Threads
urgent help please (creating jar file using ant)
Running unit test cases automatically with Ant
including a file in a build
Question on Ant script error in my build.xml file in the Eclipse IDE
Ant+JUnit