UnitTest++ - 一个轻量级的C++的单元测试框架

网友投稿 985 2022-10-28

UnitTest++ - 一个轻量级的C++的单元测试框架

UnitTest++ - 一个轻量级的C++的单元测试框架

UnitTest++

UnitTest++ is a lightweight unit testing framework for C++. It was designed to do test-driven development on a wide variety of platforms. Simplicity, portability, speed, and small footprint are all very important aspects of UnitTest++. UnitTest++ is mostly standard C++ and makes minimal use of advanced library and language features, which means it should be easily portable to just about any platform. Out of the box, the following platforms are supported:

WindowsLinuxMac OS X

Documentation

The full documentation for building and using UnitTest++ can be found on the GitHub wiki page. The contents of this wiki are also included as a git submodule under the docs folder, so version-specific Markdown documentation is always available along with the download.

Pre-requisites

While there are currently some bundled automake files, UnitTest++ is primarily built and supported using CMake.

Downloading

Latest (HEAD)

Via git:

git clone https://github.com/unittest-cpp/unittest-cpp

Via svn:

svn checkout https://github.com/unittest-cpp/unittest-cpp/trunk unittest-cpp

Latest release (v2.0.0)

Via git:

git clone https://github.com/unittest-cpp/unittest-cppcd unittest-cppgit checkout v2.0.0

Via svn:

svn checkout https://github.com/unittest-cpp/unittest-cpp/tags/v2.0.0 unittest-cpp

License

UnitTest++ is free software. You may copy, distribute, and modify it under the terms of the License contained in the file LICENSE distributed with this package. This license is the same as the MIT/X Consortium license.

Contributors

GitHub Contributor Graph

Current Maintainers:

Patrick Johnmeyer (pjohnmeyer@gmail.com) @pjohnmeyerCharles Nicholson (charles.nicholson@gmail.com) @charlesnicholson

Original Authors:

Noel Llopis (llopis@convexhull.com)Charles Nicholson (charles.nicholson@gmail.com)

Contributors not included in github history

Jim TilanderKim GrasmanJonathan JanssonDirck BlaskeyRory DriscollDan LindMatt Kimmel -- Submitted with permission from Blue Fang GamesAnthony MoralezJeff DixonRandy CoulmanLieven van der Heide

Historic release notes

Version 2.0.0 (2017-01-13)

Change Check method supporting CHECK macro to accept argument by referenceIntroduce long macro forms (e.g. UNITTEST_CHECK); make short forms optionalImproved Visual Studio 2015 supportFull List

Version 1.6.0 (2016-02-29)

Add REQUIRE macro to end tests early when selected checks failFull List

Version 1.5.1 (2016-01-30)

pkg-config supportFix for Visual Studio 2010 compilation issue in 1.5.0Full List

Version 1.5 (2015-11-04)

Visual Studio 2015 supportCMake-based build managementIntegration of SourceForge and Google Code versions of the projectFull List

Version 1.4 (2008-10-30)

CHECK macros work at arbitrary stack depth from inside TESTs.Remove obsolete TEST_UTILITY macrosPredicated test execution (via TestRunner::RunTestsIf)Better exception handling for fixture ctors/dtors.VC6/7/8/9 support

Version 1.3 (2007-4-22)

Removed dynamic memory allocations (other than streams)MinGW supportConsistent (native) line endingsMinor bug fixing

Version 1.2 (2006-10-29)

First pass at documentation.More detailed error crash catching in fixtures.Standard streams used for printing objects under check. This should allow the use of standard class types such as std::string or other custom classes with stream operators to ostream.Standard streams can be optionally compiled off by defining UNITTEST_USE_CUSTOM_STREAMS in Config.hAdded named test suitesAdded CHECK_ARRAY2D_CLOSEPosix library name is libUnitTest++.a nowFloating point numbers are postfixed with 'f' in the failure reports

Version 1.1 (2006-04-18)

CHECK macros do not have side effects even if one of the parameters changes stateRemoved CHECK_ARRAY_EQUAL (too similar to CHECK_ARRAY_CLOSE)Added local and global time constraintsRemoved dependencies on strstreamImproved Posix signal to exception translatorFailing tests are added to Visual Studio's error listFixed Visual Studio projects to work with spaces in directories

Version 1.0 (2006-03-15)

Initial release

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:springboot jpa 实现返回结果自定义查询
下一篇:Powerful Number 筛学习笔记
相关文章

 发表评论

暂时没有评论,来抢沙发吧~