diff --git a/docs/event-listeners.md b/docs/event-listeners.md index 71db3e18..377f447a 100644 --- a/docs/event-listeners.md +++ b/docs/event-listeners.md @@ -10,7 +10,7 @@ in-memory logs if they are not needed (the test case passed). Unlike reporters, each registered event listener is always active. Event listeners are always notified before reporter(s). -To write your own event listener, you should derive from `Catch::TestEventListenerBase`, +To write your own event listener, you should derive from `Catch::EventListenerBase`, as it provides empty stubs for all reporter events, allowing you to only override events you care for. Afterwards you have to register it with Catch2 using `CATCH_REGISTER_LISTENER` macro, so that Catch2 knows diff --git a/docs/generators.md b/docs/generators.md index 000b2009..27bedacc 100644 --- a/docs/generators.md +++ b/docs/generators.md @@ -275,7 +275,7 @@ There are two ways to handle this, depending on whether you want this to be an error or not. * If empty generator **is** an error, throw an exception in constructor. - * If empty generator **is not** an error, use the [`SKIP`](skipping-passing-failing.md#skipping-test-cases-at-runtime) in constructor. + * If empty generator **is not** an error, use the [`SKIP` macro](skipping-passing-failing.md#skipping-test-cases-at-runtime) in constructor. diff --git a/docs/skipping-passing-failing.md b/docs/skipping-passing-failing.md index 1bdc1f03..2b363a33 100644 --- a/docs/skipping-passing-failing.md +++ b/docs/skipping-passing-failing.md @@ -87,7 +87,7 @@ TEST_CASE("complex test case") { ``` This test case will report 5 passing assertions; one for each of the three -values in section `a1`, and then two in section `a2`, from values 2 and 4. +values in section `a1`, and then two in section `a2`, from values 2 and 6. Note that as soon as one section is skipped, the entire test case will be reported as _skipped_ (unless there is a failing assertion, in which