Unit Test Framework

Source: Internet
Author: User
Tags xunit

Most of the following are from Wikipedia

----------------------------------------------------------I am the dividing line of the Moe------------------------------------------------------- ---------------------------

1. Unit Test

Unit Testing (module testing) is a small piece of code written by a developer to verify that a small, well-defined function of the code being tested is correct. Typically, a unit test is used to determine the behavior of a particular function under a particular condition (or scenario).

2, Dunit

Dunitis aXunita member of the family, used toDephiunit tests. is aExtreme ProgrammingTest ImplementationXtreme Testingone of the tools. Dunitis a Freetest Tool, no code coverage feature.
Dunitthe officialWeb Siteis ahttps://sourceforge.net/projects/dunit/.
UseDunitshould beFirst look at the Dunit installation directorydoc\readme.html.

Dunit Basic Implementation method (GUI mode)
The basic idea of dunit is to separate the tested Code (unit) from the test Code (unit). Provides a FrameWork and a running interface. All test units should inherit the ttestcase.

3. JUnit

JUnit is an open-source Java Unit Testing framework. In 1997, the development was completed by Erich Gamma and Kent Beck.

JUnit is designed to be very small, but it is very powerful.

Here is a summary of some of the JUnit features:

1) provides an API that allows you to write a reusable unit test case with a clear test result

2) provides three ways to display your test results, and can also extend

3) provides functionality for unit test cases to run in batches

4) ultra-lightweight and easy to use, no commercial deception and useless wizards

5) The whole frame is well designed and easy to expand

4,CUnit

Following the success of Junit CppUnit , a white-box test case CUnit for developing the source code has appeared in the C language environment. CUnit is provided to the user in the form of a static library, which is directly linked to the static library when the user writes the program. It provides a simple unit test framework and provides rich assertion statement support for commonly used data types.

5,qunit

Qunit is a powerful JavaScript Unit Testing framework for debugging code. The framework was developed by members of the jquery team and is the official test suite for jquery. As long as any regular JavaScript code qunit can be tested.

6, nunit is a unit test framework , specifically for .net to write junit (Java), CPPUnit (c + +), They're all . xunit first It's from the junit

NUnit is the first 4 flagship product of the xUnit family , written entirely in the C # language. , and is written to take advantage of many . NET features , such as reflection , customer attributes, etc. .

The most important point is that it is suitable for all . NET languages .

Unit Test Framework

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.