2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-22 05:42:35 +00:00
Raffi Enficiaud d2895ebfdf Merge branch 'develop'
* develop: (26 commits)
  Doc: typo fixup
  Removing Travis and Appveyor from the front README and the code.
  GH-304: adding a section to FAQ about thread safety
  GH-310: adding a mention of fixture names clashes
  Fixup markdown
  Fix markdown link to boost.org
  Header variant: emphasis on the different path in the doc
  Doc: update year
  GH297: global fixtures in namespace scope
  GH305: trac update
  Change log
  Updated test patterns for floating point values
  Use boost_test_print_type customization point in lazy_ostream
  Change log
  Fixing UB in basic_cstring<CharT>::trim_right
  Change log
  Replace anonymous enum arity with static const
  [skip ci] Add "cxxstd" json field. The "cxxstd" json field is being added to each Boost library's meta json information for libraries in order to specify the minumum C++ standard compilation level. The value of this field matches one of the values for 'cxxstd' in Boost.Build. The purpose of doing this is to provide information for the Boost website documentation for each library which will specify the minimum C++ standard compilation that an end-user must employ in order to use the particular library. This will aid end-users who want to know if they can successfully use a Boost library based on their C++ compiler's  compilation level, without having to search the library's documentation to find this out.
  Change log
  Export execution_aborted exception to allow catching it from outside the DLL
  ...
2022-03-08 19:57:08 +01:00
2020-04-04 22:57:56 +02:00
2022-03-08 19:11:32 +01:00
2020-04-04 22:57:56 +02:00
2018-09-02 09:57:17 +02:00
2014-03-03 01:16:29 -05:00
2019-03-01 07:19:17 +01:00

boosttest logo

What is Boost.Test?

Boost.Test is a C++03/11/14/17 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. Write your first test case:
      BOOST_AUTO_TEST_CASE( your_test_case ) {
          std::vector<int> a{1, 2};
          std::vector<int> b{1, 2};
          BOOST_TEST( a == b );
      }
      
    4. build and run
    5. 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/header only) for faster integration and/or compilation/build cycles, smaller binaries

Copyright and license

Copyright 2001-2014, Gennadiy Rozental.
Copyright 2013-2020, 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.

Build Status

Boost.Test uses mostly the facility provided by our wonderful Boost testers (column Tests below).

Branch Deps Docs Tests
master Deps Documentation Enter the Matrix
develop Deps Documentation Enter the Matrix
Description
Mirrored via gitea-mirror
Readme BSL-1.0 13 MiB
Languages
C++ 99%
CMake 0.9%