GithubHelp home page GithubHelp logo

microsoft / unittest-cpp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unittest-cpp/unittest-cpp

57.0 58.0 22.0 282 KB

A lightweight unit testing framework for C++

License: MIT License

CMake 1.57% C++ 95.76% C 0.51% Makefile 1.57% M4 0.59%

unittest-cpp's Introduction

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

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

unittest-cpp's People

Contributors

hymerman avatar magicant avatar martinmoene avatar microsoft-github-policy-service[bot] avatar nlap avatar ohz10 avatar paleozogt avatar pjohnmeyer avatar qdii avatar rioki avatar warmist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.