ut icon indicating copy to clipboard operation
ut copied to clipboard

`show_successful_tests` leads to missing newline before suite summary

Open WardBrian opened this issue 7 months ago • 0 comments

Simple example:

#include <boost/ut.hpp>
using namespace boost::ut;

suite<"basic suite"> tests = [] {
  "test 1"_test = [] {
    expect(true);
    };
};

int main(int argc, const char* argv[]) {
  boost::ut::detail::cfg::show_successful_tests = true;
}

This prints:

Running test "test 1"... PASSEDSuite 'basic suite': all tests passed (1 asserts in 1 tests)
Suite 'global': all tests passed (0 asserts in 0 tests)

I would have expected something like

Running test "test 1"... PASSED
Suite 'basic suite': all tests passed (1 asserts in 1 tests)

WardBrian avatar Aug 01 '25 19:08 WardBrian