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
Integrate Generators into reporters and CLI #2826
Labels
Milestone
Comments
Some design notes for this
Example event semantics This sample test case TEST_CASE() {
SECTION("A") { ... }
auto _ = GENERATE(...);
SECTION("B") { ... }
} should emit
|
Also, we may want something like auto foo = NAMED_GENERATE("foo", ...); for avoiding common patterns auto foo = GENERATE(...);
CAPTURE(foo); This will also present the generator name to reporters, so that in cases when we are generating something that we care to be named, we will see a reasonable name there. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unlike Sections, Generators are currently invisible to reporters, and
also to the CLI. This means that in test case like this
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 theywant 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.
The text was updated successfully, but these errors were encountered: