catch2/projects/SelfTest/UsageTests
Martin Hořeňovský b79a83e4aa
Modify generator tracking to allow GENERATEs between SECTIONs
This means that code such as

```cpp
TEST_CASE() {
    SECTION("first") { SUCCEED(); }
    auto _ = GENERATE(1, 2);
    SECTION("second") { SUCCEED(); }
}
```

will run and report 3 assertions, 1 from section "first" and 2
from section "second". This also applies for greater and potentially
more confusing nesting, but fundamentally it is up to the user to
avoid overly complex and confusing nestings, just as with `SECTION`s.

The old behaviour of `GENERATE` as first thing in a `TEST_CASE`,
`GENERATE` not followed by a `SECTION`, etc etc should be unchanged.

Closes #1938
2020-07-11 23:16:07 +02:00
..
Approx.tests.cpp Add test for INF == Approx(1) 2019-10-04 14:19:39 +02:00
BDD.tests.cpp Add test for AND_GIVEN and update the baselines 2018-09-02 16:53:57 +02:00
Benchmark.tests.cpp Fix wrong namespacing of benchmarking constructor helpers 2019-11-21 16:22:04 +01:00
Class.tests.cpp tests for TEMPLATE_LIST_TEST_CASE 2019-06-15 15:40:39 +02:00
Compilation.tests.cpp Add support for bitwise xor to the decomposer 2020-04-21 19:27:12 +02:00
Condition.tests.cpp Enable Werror for dev builds 2017-11-21 18:55:28 +01:00
Decomposition.tests.cpp Add -Wmissing-declarations to the SelfTest project 2018-07-02 17:36:13 +02:00
EnumToString.tests.cpp Removed redundant ; 2019-04-27 18:50:05 +01:00
Exception.tests.cpp Suppress Wunreachable-code in floating matchers and exception tests 2018-09-01 22:34:29 +02:00
Generators.tests.cpp Modify generator tracking to allow GENERATEs between SECTIONs 2020-07-11 23:16:07 +02:00
Matchers.tests.cpp Add explicit test for shortcircuiting behaviour of combined matchers 2020-06-14 21:48:08 +02:00
Message.tests.cpp Allow quotes in CAPTURE arguments (#1608) 2019-05-01 19:12:44 +02:00
Misc.tests.cpp Fix copy paste error in 7-arg TEMPLATE_TEST_CASE_SIG implementation 2020-06-13 15:46:59 +02:00
ToStringByte.tests.cpp Add std::byte stringification support (#1686) 2019-07-13 14:47:56 +02:00
ToStringChrono.tests.cpp Add more weird chrono::duration stringification tests 2017-11-28 21:47:06 +01:00
ToStringGeneral.tests.cpp Refactor custom precision in floating point stringification 2019-05-03 15:38:06 +02:00
ToStringOptional.tests.cpp Add to string for std::optional 2019-01-31 15:35:13 +01:00
ToStringPair.tests.cpp All tests files have .tests.cpp suffix. Also moved tests out of TestMain.cpp and moved up a level 2017-11-13 16:03:27 +00:00
ToStringTuple.tests.cpp All tests files have .tests.cpp suffix. Also moved tests out of TestMain.cpp and moved up a level 2017-11-13 16:03:27 +00:00
ToStringVariant.tests.cpp Warning fixes in examples and tests 2019-10-31 14:29:59 +01:00
ToStringVector.tests.cpp Some refactorings: 2020-01-25 09:01:04 +01:00
ToStringWhich.tests.cpp Add -Wmissing-declarations to the SelfTest project 2018-07-02 17:36:13 +02:00
Tricky.tests.cpp stdio.h replaced with cstdio. 2020-02-08 14:27:40 +01:00
VariadicMacros.tests.cpp All tests files have .tests.cpp suffix. Also moved tests out of TestMain.cpp and moved up a level 2017-11-13 16:03:27 +00:00