wood burning stoves*
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant+JUnit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant+JUnit" Watch "Ant+JUnit" New topic
Author

Ant+JUnit

Vladimir Bezugliy
Ranch Hand

Joined: Sep 29, 2004
Posts: 33
I have
- jakarta-ant-1.5.1
- junit3.8.1



But wen I try to run target "run-tests" then I get error:


Where is the problem?
Vladimir Bezugliy
Ranch Hand

Joined: Sep 29, 2004
Posts: 33
I have found the problem.
I use Eclipse 3.0.
And I run ant from Eclipse.
But their junit.jar is not supports <junit> task.
How can I say to Eclipse that it should use junit.jar from my installations of junit3.8.1?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Change the runtime properties for Ant, via Preferences>Ant>Runtime.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Vladimir Bezugliy
Ranch Hand

Joined: Sep 29, 2004
Posts: 33
Here is the answer on this problem - Eclipse+Ant+JUnit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant+JUnit
 
Similar Threads
Howto run specific JUnit tests in ant?
Where is documentation for ant task schemaexport
javadoc problem, using ant build file
Problem when including unit test cases in build
how to set a dir with ant