Wednesday, June 10, 2009

Eclipse: Run a single unit test method

In eclipse if we have a junit test class with several methods in it we can run a single method test. Select the method name, right click and run as junit test. The setup and teardown are run well also.

This technique, however, does not work with testng tests. Eclipse will run all the test methods.

No comments:

Post a Comment