Java – how to run a selected set of unit tests in eclipse with a single mouse click?
•
Java
I want to create an initiator / run configuration that runs JUnit tests only in a selected set of test classes or selected packages Now it seems that I have to create a separate run configuration for each package that contains the tests I want to run I also recall how this worked in the old version of eclipse
Yes, I know: tests should be organized so that I won't encounter this problem, but reorganizing the source folder is not an option now
I am using eclipse 3.4 two
Solution
You can create a JUnit test suite like this:
JUnit Test Suite http://i39.tinypic.com/2mdqz37.jpg
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码