File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running a JUnit test case using Ant in Eclipse

 
Abder-Rahman Ali
Ranch Hand
Posts: 138
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I have a "JUnit", how can I run it using "Ant" in Eclipse?

Thanks.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you want to use Ant?
 
Abder-Rahman Ali
Ranch Hand
Posts: 138
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ilja Preuss wrote:Why do you want to use Ant?


Because I want to automate the testing process (task), in addition to another tasks like (Compile,...etc).

Thanks.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just create your ant script and configure an external tool builder for it: http://wiki.eclipse.org/FAQ_How_do_I_create_an_external_tool_builder%3F

Or consider using JUnitMax: http://www.junitmax.com/junitmax/subscribe.html
 
Abder-Rahman Ali
Ranch Hand
Posts: 138
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ilja Preuss wrote:Just create your ant script and configure an external tool builder for it: http://wiki.eclipse.org/FAQ_How_do_I_create_an_external_tool_builder%3F

Or consider using JUnitMax: http://www.junitmax.com/junitmax/subscribe.html


Thanks.
 
Seamus Minogue
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://ant.apache.org/manual/OptionalTasks/junit.html


is also another good source for you with a nice little example at the bottom.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic