Using continuous testing to achieve Eclipse environment own active unit test

Source: Internet
Author: User

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]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.