When you modify a method in your project in the Eclipse environment, you may not be running unit tests for a variety of reasons, and the resulting code commits a tragedy that might follow.
Fortunately Infinitest (http://infinitest.github.io/) provides a continuous testing plug-in, as well as when the unit tests are run automatically. Although the CPU resources will be more, but the developer's hardware who will not leave a little room? Big not, music, video, 360 uninstall on OK. There are two methods of installation:
(1) using "Install new software", enter the address:http://infinitest.github.io/
(2) Use marketplace, speed really fast, who use who know
After installation, restart Eclipse,continuous testing auto-start by default.
We create a new project autotesting and print a simple multiplication formula:
Build a unit test project autounittesting:
Modify the original method, add a line "int num2 = 1/0;", continuous testing has run automatically and displays the results in the lower left corner when saving the changes.
When the method is corrected, continuous testing will run again automatically:
OK, this feature is not very cool, at least for us to save a little bit of time, rest a moment, or with mm chat two, is not it?
Almost forget, if you do not want to enable continuous testing, performance-general-infinitetest-remove the tick.
Automate unit testing of Eclipse environments with continuous testing