请输入您要查询的百科知识:

 

词条 Check (unit testing framework)
释义

  1. Example of Check unit test

  2. External links

{{multiple issues|{{unreferenced|date=July 2014}}{{notability|Products|date=July 2014}}
}}{{Infobox Software
|name = Check
|developer =
|latest release version = 0.12.0
|latest release date = October 20, 2017
|programming language = C
|operating_system = Cross-platform
|genre = Unit testing framework
|license = LGPL
|website = {{url|https://libcheck.github.io/check/}}
}}{{Portal|Software Testing}}

Check is an open source unit testing framework in the style of xUnit for C programs. The framework is considered stable—even though it has not reached its 1.0 release yet—and is available in the package distribution systems of most Linux distributions, as well as for Windows and OS X.

Check is used by some well-known projects such as GStreamer.

Example of Check unit test

Test writing using Check is very simple. The file in which the checks are defined must include check.h as so:

  1. include

// The basic unit test looks as follows:

START_TEST (test_name)

{

}

END_TEST

// The START_TEST/END_TEST pair are macros that setup basic structures to permit testing.

// It is a mistake to leave off the END_TEST marker; doing so produces all sorts of strange errors when the check is compiled.

External links

  • {{official website|https://libcheck.github.io/check/}}
{{soft-eng-stub}}

2 : Unit testing frameworks|Cross-platform software

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/22 12:48:47