test icon indicating copy to clipboard operation
test copied to clipboard

The reference C++ unit testing framework (TDD, xUnit, C++03/11/14/17)

Results 116 test issues
Sort by recently updated
recently updated
newest added

This works: ```c++ BOOST_AUTO_TEST_CASE(one_embedded_cdata_section) { BOOST_REQUIRE_MESSAGE(false, "AdditionalTextAfterwards"); } ``` This produces invalid XML data using -o XML: ```c++ BOOST_AUTO_TEST_CASE(two_embedded_cdata_sections) { BOOST_REQUIRE_MESSAGE(false, "AdditionalTextAfterwards"); } ``` I believe the if test here:...

It would be nice to be able to make an AND operation between labels. Imagine following: Each test case has: * a label which specifies test case type - there...

discussion
feature-request

Replace loops using it by simple do { ... } while (0) loops. This allows static analysis tools like clang-tidy to better understand the code and avoid false positives. Fixes...

Hi! In file boost/test/impl/execution_monitor.ipp: ``` boost/test/impl/execution_monitor.ipp:429:27: error: format specifies type 'unsigned long' but the argument has type 'uintptr_t' (aka 'unsigned int') [-Werror,-Wformat] (uintptr_t) m_sig_info->si_addr ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ boost/test/impl/execution_monitor.ipp:434:27: error: format specifies...

Boost 1.79.0 GCC 11.2.0, -std=gnu++20 Linux 3.10 x86_64 Using a compiled shared object libboost_unit_test_framework.so and sources compiled with -DBOOST_TEST_DYN_LINK leads to undefined reference linker errors when creating/using boost::test::output::xml_log_formatter instances, that...

Cross-compiling a minimal Boost Test example for RISC-V: ```cpp #define BOOST_TEST_MODULE Example Test #include BOOST_AUTO_TEST_CASE( test1 ) { int i = 1; BOOST_CHECK( i*i == 1 ); } ``` ```bash...

**Issue description:** One test fails after runtest in MSVC. Could you please take a look? **Reproduce steps:** 1. git clone ​https://github.com/boostorg/boost.git F:\gitP\boostorg\boost 2. git -C "F:\gitP\boostorg\boost" submodule update --init --recursive...

```cpp #include #include void f(std::vector p); int main() { std::vector v; BOOST_CHECK_NO_THROW(f(std::move(v))); } ``` run `clang-tidy --extra-arg=-I/path/to/boost/include -checks=-*,bugprone-use-after-move test.cpp` (clang-tidy version 14.0.5) yields: ``` /tmp/test.cpp:8:36: warning: 'v' used after it...

I have a custom logger which inherits from `boost::unit_test::unit_test_log_formatter`. The actual logging takes place via an in-house proprietary logging framework that has a complex binary format, with quite a few...

I started using Boost.Test (again) in a new project. I would like to use cmake/ctest for building and test management. Unfortunately this is not easy possible with 1.74 (debian bullseye)....