| Article: |
Using JUnit With Eclipse IDE | |
| Subject: | helped a lot | |
| Date: | 2007-09-16 23:54:31 | |
| From: | java_sushil | |
| it was helped me a lot to start to write a junit test cases.. | ||
Showing messages 1 through 5 of 5.
-
junit.framework.AssertionFailedError: No tests found in package name.classname
2007-11-06 22:42:14 ajay_maheshwari [View]
-
junit.framework.AssertionFailedError: No tests found in package name.classname
2007-12-14 02:39:02 manikandankv [View]
Hi ,
You would have forgotten to mention the method start with 'test' .
ex: testMethod1()
Regards
Manikandan.k -
junit.framework.AssertionFailedError: No tests found in package name.classname
2007-12-27 20:39:20 LeilaMir [View]
Make sure the "test" at the beginning of the method name is lower case. If you say TestMethod you will get this error message. You should say testMethod. -
junit.framework.AssertionFailedError: No tests found in package name.classname
2009-12-01 05:41:16 Pramy [View]
I get this error message even when the class name is lower case. -
junit.framework.AssertionFailedError: No tests found in package name.classname
2010-04-15 15:44:04 vmbharathi [View]
The above suggestion to start the method names as lower case "testXXX()" worked for me!
Thx



public class name extent TestCase{
public void method1() {}
public void method1() {}
}
getting following error
junit.framework.AssertionFailedError: No tests found in junit.framwork.test.SubscriberTestcase at junit.framework.Assert.fail(Assert.java:47) at junit.framework.TestSuite$1.runTest(TestSuite.java:93) atJunit.framework.TestCase.runBare(TestCase.java:130) atjunit.framework.TestResult$1.protect(TestResult.java:110) atjunit.framework.TestResult.runProtected(TestResult.java:128)
at Junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:228)
at junit.framework.TestSuite.run(TestSuite.java:223)
at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)