| Article: |
Using JUnit With Eclipse IDE | |
| Subject: | junit.framework.AssertionFailedError: No tests found in package name.classname | |
| Date: | 2007-11-06 22:42:14 | |
| From: | ajay_maheshwari | |
|
Response to: helped a lot
|
||
|
I am running junit test case as follow. public class name extent TestCase{ public void method1() {} public void method1() {} }
|
||
Showing messages 1 through 4 of 4.
-
junit.framework.AssertionFailedError: No tests found in package name.classname
2007-12-14 02:39:02 manikandankv [View]
-
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



You would have forgotten to mention the method start with 'test' .
ex: testMethod1()
Regards
Manikandan.k