ut icon indicating copy to clipboard operation
ut copied to clipboard

Formatting of suite with skipped and passing tests not including enough newlines

Open Ttibsi opened this issue 1 year ago • 1 comments

Expected Behavior

Running "skipped"... SKIPPED
Suite 'Example': all tests passed (1 asserts in 2 tests)
1 tests skipped
Suite 'global': all tests passed (0 asserts in 0 tests)

Actual Behavior

Running "skipped"... SKIPPEDSuite 'Example': all tests passed (1 asserts in 2 tests)
1 tests skipped
Suite 'global': all tests passed (0 asserts in 0 tests)

Steps to Reproduce the Problem

  1. Create a suite of tests
  2. Mark at least one as skipped
#include "ut/ut.hpp"

boost::ut::suite<"Example"> ex_suite = [] {
    using namespace boost::ut;

    skip / "skipped"_test = [] { };
    "passing"_test = [] { expect(true); };
};

Note that I've found that it's only the last newline that's missing -- if there are multiple skipped tests, they print newlines proprly until the last skipped test doesn't.

Specifications

  • Version: Master (as of 23.12.2024),
# compiler
$ clang --version
clang version 18.1.8 (Fedora 18.1.8-1.fc40)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Configuration file: /etc/clang/x86_64-redhat-linux-gnu-clang.cfg

# platform
$ fastfetch
            .',;::::;,'.                 auri@fedora
        .';:cccccccccccc:;,.             -----------
     .;cccccccccccccccccccccc;.          OS: Fedora Linux 40 (Workstation Edition) x86_64
   .:cccccccccccccccccccccccccc:.        Host: Laptop (AA)
 .;ccccccccccccc;.:dddl:.;ccccccc;.      Kernel: Linux 6.12.5-100.fc40.x86_64
.:ccccccccccccc;OWMKOOXMWd;ccccccc:.     Uptime: 53 mins
.:ccccccccccccc;KMMc;cc;xMMc;ccccccc:.    Packages: 2144 (rpm), 9 (flatpak)
,cccccccccccccc;MMM.;cc;;WW:;cccccccc,    Shell: bash 5.2.26
:cccccccccccccc;MMM.;cccccccccccccccc:    Display (BOE095F): 2256x1504 @ 60 Hz (as 1803x1202) in 13" [Built-in]
:ccccccc;oxOOOo;MMM000k.;cccccccccccc:    DE: GNOME 46.7
cccccc;0MMKxdd:;MMMkddc.;cccccccccccc;    WM: Mutter (Wayland)
ccccc;XMO';cccc;MMM.;cccccccccccccccc'    WM Theme: Adwaita
ccccc;MMo;ccccc;MMW.;ccccccccccccccc;     Theme: Adwaita [GTK2/3/4]
ccccc;0MNc.ccc.xMMd;ccccccccccccccc;      Icons: Adwaita [GTK2/3/4]
cccccc;dNMWXXXWM0:;cccccccccccccc:,       Font: Cantarell (11pt) [GTK2/3/4]
cccccccc;.:odl:.;cccccccccccccc:,.        Cursor: Adwaita (24px)
ccccccccccccccccccccccccccccc:'.          Terminal: tmux 3.5a
:ccccccccccccccccccccccc:;,..             CPU: 11th Gen Intel(R) Core(TM) i5-1135G7 (8) @ 4.20 GHz
':cccccccccccccccc::;,.                  GPU: Intel Iris Xe Graphics @ 1.30 GHz [Integrated]
                                         Memory: 5.20 GiB / 31.12 GiB (17%)
                                         Swap: 0 B / 8.00 GiB (0%)
                                         Disk (/): 13.77 GiB / 929.93 GiB (1%) - btrfs
                                         Local IP (wlp170s0): 192.168.1.142/24
                                         Battery (Framewo): 50% (3 hours, 22 mins remaining) [Discharging]
                                         Locale: en_GB.UTF-8

Ttibsi avatar Dec 25 '24 14:12 Ttibsi

@Ttibsi Can you confirm that this bug is closed? If so, maybe you could close this issue.

user-0xcafe avatar Aug 23 '25 16:08 user-0xcafe