Boost
Libraries
arrow_drop_down
Boost.Test
M
D
C++ 03 Added in Boost 1.21.0
Categories: Correctness

Support for simple program testing, full unit testing, and for program execution monitoring.

This Release

Aaron Gorenstein
Aaron Gorenstein
Contributor - New
Brian Kuhl
Brian Kuhl
Contributor - New
Mikhail Strelnikov
Mikhail Strelnikov
Contributor - New
James E. King, III
James E. King, III
Contributor - New
Reimar Döffinger
Reimar Döffinger
Contributor - New
Jonnahtan Saltarin
Contributor - New
Namezero
Namezero
Contributor - New
Raffi Enficiaud
Raffi Enficiaud
Contributor
Benjamin Roland Buch
Benjamin Roland Buch
Contributor
Romain Geissler
Romain Geissler
Contributor
Marshall Clow
Marshall Clow
Contributor
Andrey Semashev
Andrey Semashev
Contributor

Dependencies

Algorithm
Assert
Bind
Config
Core
Detail
Exception
Function
IO
Iterator
MPL
Numeric Conversion
Optional
Preprocessor
Smart Ptr
Static Assert
Timer
Type Traits
Utility

Removed

Range

boosttest logo

What is Boost.Test?

Boost.Test is a C++03 and C++11/14 unit testing library, available on a wide range of platforms and compilers.

The library is part of Boost. The latest release of the library is available from the boost web site.

Full instructions for use of this library can be accessed from http://www.boost.org/doc/libs/release/libs/test/

Key features

  • Easy to get started with:
    1. download and deflate the latest boost archive
    2. create a test module with this (header version):
      #define BOOST_TEST_MODULE your_test_module
      #include <boost/test/included/unit_test.hpp>
      
    3. done
  • powerful and unique test assertion macro BOOST_TEST, that understands floating points, collections, strings... and uses appropriate comparison paradigm
  • self-registering test cases, organize cases in test suites, apply fixtures on test cases, suites or globally
  • provide assertion context for advanced diagnostic on failure
  • powerful and extensible dataset tests
  • add decoration to test cases and suites for advanced description, group/label, and dependencies
  • powerful command line options and test case filters
  • extensible logging, XML and JUNIT outputs for third-party tools (eg. cont. integration)
  • various usage (shared/static library) for faster compilation/build cycles, smaller binaries

Copyright and license

Copyright 2001-2014, Gennadiy Rozental.
Copyright 2013-2018, Boost.Test team.

Distributed under the Boost Software License, Version 1.0. (Get a copy at www.boost.org/LICENSE_1_0.txt)

Contribute

Please read this document to get started.

All Time

Gennadiy Rozental
Gennadiy Rozental
Contributor
Raffi Enficiaud
Raffi Enficiaud
Contributor
Raffi Enficiaud
Raffi Enficiaud
Contributor
Raffi Enficiaud
Raffi Enficiaud
Contributor
Andrzej Krzemieński
Andrzej Krzemieński
Contributor
Beman Dawes
Beman Dawes
Contributor
Steven Watanabe
Steven Watanabe
Contributor
jzmaddock
jzmaddock
Contributor
Raffi Enficiaud
Raffi Enficiaud
Contributor
Jürgen Hunold
Jürgen Hunold
Contributor
nobody
Contributor
Douglas Gregor
Douglas Gregor
Contributor
Vladimir Prus
Vladimir Prus
Contributor
jamie
Contributor
Rene Rivera
Rene Rivera
Contributor
Dave Abrahams
Dave Abrahams
Contributor
K. Noel Belcourt
K. Noel Belcourt
Contributor
Adam Wulkiewicz
Adam Wulkiewicz
Contributor
Roland Schwarz
Roland Schwarz
Contributor
Daniel James
Daniel James
Contributor
Markus Schöpflin
Contributor
Victor A. Wagner Jr.
Contributor
Troy D. Straszheim
Troy D. Straszheim
Contributor
David Deakins
David Deakins
Contributor
akumta
akumta
Contributor
Bryce Adelstein-Lelbach
Bryce Adelstein-Lelbach
Contributor
Eric Niebler
Contributor
Vicente J. Botet Escriba
Vicente J. Botet Escriba
Contributor
Jeremiah Willcock
Jeremiah Willcock
Contributor
Paul A. Bristow
Paul A. Bristow
Contributor
Jens Maurer
Jens Maurer
Contributor
Marek Kurdej
Marek Kurdej
Contributor
Marcel Raad
Marcel Raad
Contributor
Aleksey Gurtovoy
Contributor
Antony Polukhin
Antony Polukhin
Contributor
Toon Knapen
Toon Knapen
Contributor
Boris Gubenko
Contributor
Jonathan Turkanis
Jonathan Turkanis
Contributor
Ben Wiederhake
Ben Wiederhake
Contributor
Joaquín M. López Muñoz
Joaquín M. López Muñoz
Contributor
Gennaro Prota
Contributor
Edward Diener
Edward Diener
Contributor
Noel Belcourt
Noel Belcourt
Contributor
Norbert Wenzel
Norbert Wenzel
Contributor
Jonathan Wakely
Jonathan Wakely
Contributor
Stephen Kelly
Stephen Kelly
Contributor
Jörg Krause
Jörg Krause
Contributor
Jessica Hamilton
Jessica Hamilton
Contributor
André Draszik
André Draszik
Contributor
Jörg Böhme
Jörg Böhme
Contributor
Thomas Witt
Thomas Witt
Contributor
zerotypos-found
zerotypos-found
Contributor
Ralf W. Grosse-Kunstleve
Contributor
Adam Majer
Adam Majer
Contributor
Jurko Gospodnetić
Jurko Gospodnetić
Contributor
equal-l2
equal-l2
Contributor
Michael A. Jackson
Michael A. Jackson
Contributor
Vladimir Prus
Vladimir Prus
Contributor
Hartmut Kaiser
Hartmut Kaiser
Contributor
Peter Dimov
Peter Dimov
Contributor
ja11sop
ja11sop
Contributor
Daniela Engert
Daniela Engert
Contributor
Daniel Laügt
Daniel Laügt
Contributor
wwinder
wwinder
Contributor
Jeremy Siek
Jeremy Siek
Contributor
Darin Adler
Contributor
Tim Blechmann
Tim Blechmann
Contributor