Automate unit testing of Eclipse environments with continuous testing

Source: Internet
Author: User

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.

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.