#define SPD_TEST_FRAMEWORK #ifdef SPD_TEST_FRAMEWORK #define SPD_TEST_INIT(name) static enum spd_test_result name(struct spd_test_record *record, enum spd_test_cmd type, struct spd_test *test) #define SPD_TEST_REGISTER(name) spd_test_register(name) #define SPD_TEST_UNREGISTER(name) spd...
SPD_TEST_INIT(name); /* 注册单元测试函数到测试框架 name为函数名 */ SPD_TEST_REGISTER(name); /* * run test framework in three mode : * name : run given name test case, may be NULL * category : run a class of test of given category , may be NULL * if both name and category ...
#include http://cunit.sourceforge.net/doc/headers/CUnit.h ASSERT macros for use in test cases, and includes other framework headers. #include http://cunit.sourceforge.net/doc/headers/CUError.h Error handing functions and data types. Included automatically by CUnit.h. #include http://cunit....
A dead-simple, yet extensible, C test framework. Philosophy Most test frameworks for C require a lot of boilerplate code to set up tests and test suites -- you need to create a main, then register new test suites, then register the tests within these suits, and finally call the right ...
Google C++ Testing Framework(简称gtest,http://code.google.com/p/googletest/)是Google公司发布的一个开源C/C++单元测试框架,已被应用于多个开源项目及Google内部项目中,知名的例子包括Chrome Web浏览器、LLVM编译器架构、Protocol Buffers数据交换格式及工具等。
Write and run C++ unit tests with the Test Explorer in Visual Studio by using CTest, Boost.Test, Google Test, and other testing frameworks.
The Microsoft unit testing framework for C++ enables you to write unit tests for C++ projects. In this section Unit testing existing C++ applications with Test Explorer Unit testing native code with Test Explorer Using Microsoft.VisualStudio.TestTools.CppUnitTestFramework...
CU is simple unit testing framework for handling automated tests in C. CU provides a simple interface for defining unit tests using macros. Each test suite runs in a separate process - test suites does not influence each other and any failure (such as segfault) does not break up the whole...
此部分演示适用于 C/C++ 的 Microsoft 单元测试框架的语法。 记录在此处:Microsoft.VisualStudio.TestTools.CppUnitTestFramework API reference。 有关 Google Test 文档,请参阅Google Test 入门。 有关 Boost.Test,请参阅Boost Test 库:单元测试框架。
Google C++ Testing Framework(简称gtest,http://code.google.com/p/googletest/)是Google公司发布的一个开源C/C++单元测试框架,已被应用于多个开源项目及Google内部项目中,知名的例子包括Chrome Web浏览器、LLVM编译器架构、Protocol Buffers数据交换格式及工具等。