File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Running JUnit 4 with Ant 1.6.5 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 "Running JUnit 4 with Ant 1.6.5" Watch "Running JUnit 4 with Ant 1.6.5" New topic
Author

Running JUnit 4 with Ant 1.6.5

Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
I am trying to run JUnit4 test with Ant 1.6.5. I am getting following error LoggingTest:
Caused an ERROR [junit] No runnable methods [junit] java.lang.Exception: No runnable methods
Below is the JUnit test case
The Ant task is


"Know where to find the solution and how to use it - that's the secret of success."
Deon Cravalho
Greenhorn

Joined: Oct 22, 2009
Posts: 6
I realize your posting of the question was a few years back, but thought I would post a response in case someone else was researching the issue and stumbles across this thread:

JUnit 4 is not compatible with Ant 1.6.5. You may find some solutions of how to tweak it, to make it work, but you may have some sacrifices of things such as the JUnit results window.

Suggest upgrading Ant to 1.7, which should be compatible with JUnit 4.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Running JUnit 4 with Ant 1.6.5