mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Clean up explanation in tests
This commit is contained in:
parent
1b049bdba4
commit
683c85772f
@ -7,11 +7,10 @@
|
|||||||
// SPDX-License-Identifier: BSL-1.0
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
/**\file
|
/**\file
|
||||||
* TODO: FIXES Registers custom reporter that reports testCase* events
|
* Registers an event listener to increments counter of assertionStarting events.
|
||||||
*
|
*
|
||||||
* The resulting executable can then be used by an external Python script
|
* Different assertion macros then check that the counter is at expected
|
||||||
* to verify that testCase{Starting,Ended} and testCasePartial{Starting,Ended}
|
* value when they are evaluated.
|
||||||
* events are properly nested.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <catch2/catch_test_macros.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
@ -23,9 +22,6 @@ namespace {
|
|||||||
|
|
||||||
static size_t assertion_starting_events_seen = 0;
|
static size_t assertion_starting_events_seen = 0;
|
||||||
|
|
||||||
// TODO: custom matcher to check that "assertion_starting_events_seen" has
|
|
||||||
// the right number of checks
|
|
||||||
|
|
||||||
class AssertionStartingListener : public Catch::EventListenerBase {
|
class AssertionStartingListener : public Catch::EventListenerBase {
|
||||||
public:
|
public:
|
||||||
AssertionStartingListener( Catch::IConfig const* config ):
|
AssertionStartingListener( Catch::IConfig const* config ):
|
||||||
|
Loading…
Reference in New Issue
Block a user