• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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

 
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 397
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic