catchorg / catchorg/Catch2

Report section when test fails outside of a section

Open
#2,407 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

Apologies if this is something already implemented and I am doing it wrong, but I am using a test like this:

```
TEST_CASE("x")
{
SECTION("1")
{
code
}
SECTION("2")
{
different code
}
REQUIRE(test)
}
```
If the test fails, i don't know when section was used when failing.

Is there a way to report the section?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.