Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ttibsi opened this issue Dec 25, 2024 · 0 comments

Comments

@Ttibsi
Copy link

Ttibsi commented Dec 25, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant