When you change a method in your eclipse environment, you may not be able to perform unit tests for a variety of reasons, and the resulting code commits a tragedy that may follow.
Fortunately Infinitest (http://infinitest.github.io/) provides a continuous testing plug-in, in time to take the initiative to carry out the unit test. Although there will be more CPU resources, 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 the default self-initiated.
We create a new project autotesting and print a simple multiplication formula:
Build another unit test project autounittesting:
Change the original method, add a line "int num2 = 1/0;", and when saving the changes, continuous testing has taken the initiative and displays the results in the lower left corner.
When the method is corrected, continuous testing will do it on its own initiative:
OK, this feature is not very cool, at least for us to save a little time, rest a moment, or with a mm chat two, is not it?
Almost forget, assuming do not want to enable continuous testing, in performance-general-infinitetest-remove tick can.
Invitation Month Note: This article copyright by invitation month and CSDN common all, reprint please indicate source.
Helping people equals self-help! [Email protected]