We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Suppose I have a test case with a structure like the following:
TEST_CASE("Nesting") { SECTION("A") { SECTION("1") SUCCEED(); SECTION("2") SUCCEED(); } SECTION("B") { SECTION("1") SUCCEED(); SECTION("2") SUCCEED(); } }
Upon selecting the test case and section on the command line, I get the following results:
./test Nesting
./test Nesting -c A
./test Nesting -c B
Expected behavior ./test Nesting -c A should execute all subsections of section A.
Reproduction steps See description.
Platform information:
The text was updated successfully, but these errors were encountered:
Thanks for the report.
Upon further investigation, this was introduced by #1492 and affects all sections that are not the last section, in other words, in this
TEST_CASE("Nesting") { SECTION("A") { SECTION("1") SUCCEED(); SECTION("2") SUCCEED(); } SECTION("B") { SECTION("1") SUCCEED(); SECTION("2") SUCCEED(); } SECTION("C") { SECTION("1") SUCCEED(); SECTION("2") SUCCEED(); } }
Only "C" is unaffected.
Sorry, something went wrong.
Thanks, that has given me somewhere more specific to look, and it looks like an easy fix.
Successfully merging a pull request may close this issue.
Describe the bug
Suppose I have a test case with a structure like the following:
Upon selecting the test case and section on the command line, I get the following results:
./test Nesting
: All four assertions are executed;./test Nesting -c A
: Only A1 is executed;./test Nesting -c B
: B1 and B2 are executed.Expected behavior
./test Nesting -c A
should execute all subsections of section A.Reproduction steps
See description.
Platform information:
The text was updated successfully, but these errors were encountered: