I am using Eclipse IDE and JUnit for unit testing.
I have given 12 test cases that is 12 different functions.
When I right click on the paticular function in Outline and give RunAS -> Junit Test it is executing all the test cases.
How to overcome this? I just want to run only one test case or one function.
The following page has discussion on this issue, specifically versions and changes to JUnit 4, etc.
http://srivaths.blogspot.com/2009/04/run-single-junit-test-method-in-eclipse.html
You’d need to give more information regarding versions etc if you need more help but as that discussion suggests, in JUnit 4 it works if you don’t extend
junit.framework.TestCase.