About the Unit Test tool

Source: Internet
Author: User
Tags xunit

1.JAVA Unit Test Tool--junit

1.1 Definitions and introduction       JUnit is a unit test framework for the Java language. Founded by Kent Beck and Erich Gamma, it became the most successful of the Xunit family of Sunit from Kent Beck. JUnit has its own JUnit expansion biosphere. Most Java development environments have integrated JUnit as a unit test tool. "      " JUnit is a regression testing framework (regression testing framework) written by Erich Gamma and Kent Beck. JUnit testing is a programmer's test, the so-called white-box test, because the programmer knows how the software being tested (how) accomplishes the function and what it does. JUnit is a set of frameworks that inherit the TestCase class and can be automatically tested with JUnit. "      above quoted from Baidu Encyclopedia Http://baike.baidu.com/link?url=9RA2Dp5x1IurBOyi-k-7MV1zGmvy7Yygd7uVAEBZgbAAc9_ Dd35sp_hbgk_dj6tmcpzctarbqkmw8sr51x53w_. 1.2 Advantages 1.2.1 Free           There are a lot of Java unit testing tools are charged, such as: JTest, JMeter. 1.2.2 Implementation of automated unit testing can greatly improve the efficiency of development   The most significant performance in the area of extreme programming and code refactoring. Extreme programming requires testing before writing code, so that programmers can write code before the function and logic of the code, otherwise the test code and the code to be tested in the event of an error, both need to maintain, but more delay time. In terms of code refactoring, testing can reduce the time consumed by regression errors. 1.2.3JUnit assertion function           If the code is wrong, JUnit will tell you which test did not pass and why not. 1.3 Feature  junit is an example of Xunit for the unit Test framework system. 1.3.1JUnit is the assertion used to test the desired result. 1.3.2JUnit is a test runner for graphical and textual testing. 1.3.3JUnit is a test suite for easy organization and running tests.  2.javascript Unit Test Tool--google JSTest2.1 definition and introduction      google JS test is a JavaScript unit test framework running under the V8 JavaScript engine, Google JS Test is responsible for testing Chrome's JS execution speed inside Google, which is now open for everyone to use in open source engineering. 2.2 Feature 2.2.1 does not need to be run in the browser. There is an ultra-fast startup speed and execution speed. 2.2.2 Output results are simple and easy to read. The 2.2.3Google JS test has an optional browser-based tester. The 2.2.4 Matching system allows expression testing and can visually read the error message of the output. 2.2.5 has a number of matching device built-in, users can also add their own.       

About the Unit test tool

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.