catch2/tests/SelfTest
Martin Hořeňovský 3f8cae8025
Add consistency-checking event listener to SelfTest
This event listener performs basic consistency checks (akin to
matching braces) on events that are passed to the listeners
when the `SelfTest` test binary is run.

The current checks are about nesting events (e.g. `testCaseStarting`
cannot be received before `testRunStarting`, `sectionStarting`
can only be received when a test case is active, etc), and matching
up counts of starting/ended events.

The simplicity means that it could be confused by starting/ended
events matching up but being out of order, e.g.
```
* test case A starting
* test case B ended
* test case B starting
* test case A ended
```
would be accepted, even though it is wrong. However, doing full
order checking would be much more implementation work, for relatively
little benefit, so it is left out for now.
2021-09-15 23:38:43 +02:00
..
Baselines Completely remove the testGroup events 2021-09-07 20:00:22 +02:00
IntrospectiveTests Add test for !shouldfail and failed benchmarks 2021-08-21 00:06:31 +02:00
Misc Move tests from projects/ to tests/ 2019-12-05 16:00:20 +01:00
TimingTests Increase timing window for min duration tests to 1s 2021-02-20 23:09:02 +01:00
UsageTests Make Approx::operator() const 2021-08-26 21:27:43 +02:00
TestRegistrations.cpp Add consistency-checking event listener to SelfTest 2021-09-15 23:38:43 +02:00
WarnAboutNoTests.cmake Move tests from projects/ to tests/ 2019-12-05 16:00:20 +01:00