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