dcsimg
Error while running JUnit4 with Ant 1.6.5 - Plz help
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Amir_Rafique
Posted On:   Wednesday, October 11, 2006 01:25 AM

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 public class LoggingTest { @Test public void aSimpleTestMethod() { //... } public static junit.framework.Test suite() { return new JUnit4TestAdapter(LoggingTest.class); } } The Ant task is    More>>

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

			
public class LoggingTest {
@Test
public void aSimpleTestMethod() {
//...
}

public static junit.framework.Test suite() {
return new JUnit4TestAdapter(LoggingTest.class);
}
}



The Ant task is

			












   <<Less

Re: Error while running JUnit4 with Ant 1.6.5 - Plz help

Posted By:   Anonymous  
Posted On:   Wednesday, October 11, 2006 07:36 AM

There was a problem with Ant+JUnit4 when you have JUnit in one of Ant's lib-directories. This is resolved in HEAD. See Bug-40682 and Bug-40697.
About | Sitemap | Contact