Catch2
Catch2 copied to clipboard
Group test case and sections in it together
Description It is really easy to read the code with sections inside test cases. I wish the same could be done for the console output.
Additional context Current output
-------------------------------------------------------------------------------
TEST 1
SECTION 1
-------------------------------------------------------------------------------
some/test/some/file:some_line
...............................................................................
some/test/some/file:some_line: PASSED:
REQUIRE_FALSE( ...)
with expansion:
!false
some/test/some/file:some_line: PASSED:
REQUIRE_FALSE(... )
with expansion:
!false
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
TEST 1
SECTION 2
-------------------------------------------------------------------------------
some/test/some/file:some_line
...............................................................................
some/test/some/file:some_line: PASSED:
REQUIRE_FALSE( ...)
with expansion:
!false
some/test/some/file:some_line: PASSED:
REQUIRE_FALSE(... )
with expansion:
!false
-------------------------------------------------------------------------------
I suggest
===============================================================================
TEST 1
SECTION 1: some/test/some/file:some_line
-------------------------------------------------------------------------------
some/test/some/file:some_line: PASSED:
REQUIRE_FALSE( ...)
with expansion:
!false
some/test/some/file:some_line: PASSED:
REQUIRE_FALSE(... )
with expansion:
!false
SECTION 2: some/test/some/file:some_line
-------------------------------------------------------------------------------
some/test/some/file:some_line: PASSED:
REQUIRE_FALSE( ...)
with expansion:
!false
some/test/some/file:some_line: PASSED:
REQUIRE_FALSE(... )
with expansion:
!false
===============================================================================
This would make it so much easier to read.
Which command arguments do you use to get the "Current output"? And which version of catch.
Version: Catch v2.13.7 I don't use any command arguments. Are there any which would generate an output like that?
Anyone?