Boost.Test is a C++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/
#define BOOST_TEST_MODULE your_test_module
#include <boost/test/included/unit_test.hpp>
BOOST_AUTO_TEST_CASE( your_test_case ) {
std::vector<int> a{1, 2};
std::vector<int> b{1, 2};
BOOST_TEST( a == b );
}
BOOST_TEST
, that understands floating points, collections, strings... and uses appropriate comparison paradigmCopyright 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)
Please read this document to get started.
Boost.Test uses mostly the facility provided by our wonderful Boost testers (column Tests
below).
Branch | Deps | Docs | Tests | Github Actions |
---|---|---|---|---|
master |
||||
develop |