A lightweight unit testing framework for C++
Перейти к файлу
microsoft-github-policy-service[bot] de058b8a68
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-06-13 17:54:06 +00:00
UnitTest++ Merge pull request #78 from Microsoft/vs2015Support 2015-10-15 22:20:22 -05:00
builds Add 'empty' builds directory per the wiki. (The folder is not actually empty as it includes a .gitignore.) 2013-05-09 07:17:00 -05:00
docs@0aa16abcb2 Updating docs submodule reference. 2015-04-25 02:30:22 -05:00
tests Merge pull request #78 from Microsoft/vs2015Support 2015-10-15 22:20:22 -05:00
.gitattributes Add *.bat as eol=crlf. 2013-03-24 01:31:40 -05:00
.gitignore Fix autotools configuration 2013-07-20 13:27:19 +09:00
.gitmodules Add https://github.com/unittest-cpp/unittest-cpp.wiki.git as submodule 'docs'. 2013-05-08 22:24:22 -05:00
.travis.yml Add tiny comment change to trigger Travis. 2015-07-14 20:49:26 -05:00
AUTHORS Update AUTHORS and configure.ac 2014-12-19 11:51:26 -06:00
CMakeLists.txt Added support for VS2015 2015-09-22 07:36:28 -07:00
ChangeLog Added autobuild system 2012-11-14 18:44:50 -05:00
INSTALL Added autobuild system 2012-11-14 18:44:50 -05:00
LICENSE Rename COPYING to LICENSE; delete NEWS since it was empty anyway. 2013-02-20 22:59:01 -06:00
Makefile.am Adding conditional automake directives to allow Win32 compilation on win32-mingw/cygwin-mingw systems. 2015-04-07 08:46:20 -04:00
README.md Add travis and appveyor badges to README.md 2015-07-14 20:58:37 -05:00
SECURITY.md Microsoft mandatory file 2023-06-02 21:28:59 +00:00
appveyor.yml Add AppVeyor configuration file, appveyor.yml 2015-04-27 08:52:29 +01:00
configure.ac Using the $host variable to detect win32 compilers. 2015-04-19 18:48:56 -04:00

README.md

Build Status Build status

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 ANSI portable C++ and makes minimal use of advanced library and languages features, which means it should be easily portable to just about any platform. Out of the box, the following platforms are supported:

  • Windows
  • Linux
  • Mac 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 makefiles and projects, 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 (v1.4)

Via git:

git clone https://github.com/unittest-cpp/unittest-cpp
cd unittest-cpp
git checkout v1.4

Via svn:

svn checkout https://github.com/unittest-cpp/unittest-cpp/tags/v1.4 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:

Original Authors:

Contributors not included in github history

  • Jim Tilander
  • Kim Grasman
  • Jonathan Jansson
  • Dirck Blaskey
  • Rory Driscoll
  • Dan Lind
  • Matt Kimmel -- Submitted with permission from Blue Fang Games
  • Anthony Moralez
  • Jeff Dixon
  • Randy Coulman
  • Lieven van der Heide

Historic release notes

Version 1.4 (2008-10-30)

  • CHECK macros work at arbitrary stack depth from inside TESTs.
  • Remove obsolete TEST_UTILITY macros
  • Predicated 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 support
  • Consistent (native) line endings
  • Minor 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.h
  • Added named test suites
  • Added CHECK_ARRAY2D_CLOSE
  • Posix library name is libUnitTest++.a now
  • Floating 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 state
  • Removed CHECK_ARRAY_EQUAL (too similar to CHECK_ARRAY_CLOSE)
  • Added local and global time constraints
  • Removed dependencies on strstream
  • Improved Posix signal to exception translator
  • Failing tests are added to Visual Studio's error list
  • Fixed Visual Studio projects to work with spaces in directories

Version 1.0 (2006-03-15)

  • Initial release