This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Ant runs tests twice? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Ant runs tests twice?" Watch "Ant runs tests twice?" New topic
Author

Ant runs tests twice?

Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
I am runing Ant 1.6.1 on Eclipse 3.08M, and I have the following problem:

Whenever I use junit task, all my tests are ran twice. Does anyone know why this happens? Here's the code in ant:



And the test file is just a normal file with 1 test. I put System.out.println("hi"), and it prints it twice. Also, the following output is in the screen:



Thanks in advance!
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17224
    
    1

Hi Ivan, you might want to post this thread into the Ant forum, or if it is more specific to JUnit, into the forum that handles JUnit.

This forum is for Servlets questions.

I am going to close this thread to allow you to post in those other forums.

Thanks.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Ant runs tests twice?
 
Similar Threads
JUnit ant batch process failing
ANT JUnit Problem
Ant/JUnit, BatchTest: ClassNotFound...
Ant/JUnit, BatchTest: ClassNotFound...
ANT issues - Unable to create JUnit Reports- Please help