catchorg / catchorg/Catch2

Integrate Generators into reporters and CLI

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

Description

Unlike Sections, Generators are currently invisible to reporters, and
also to the CLI. This means that in test case like this

```cpp
TEST_CASE() {
SECTION("a") { ... }
auto i = GENERATE(1, 2, 3);
SECTION("b") { ... }
}
```

the user can ask to run specifically "a" section, or the "b" section 3 times,
but they cannot ask to run the test case with `i == 2` (whether they
want to run a specific section or not).

This then makes errors in generator-based tests harder to debug than they
should be (debugging the test case for 17th element out of 23 is hard to
set up).

This is an important step towards death tests, which require ability to
run specific test in a different process.

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.