ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
database_lifecycle_listener Class Reference

Catch2 listener that manages database lifecycle for tests. More...

#include <database_lifecycle_listener.hpp>

Inherits EventListenerBase.

Collaboration diagram for database_lifecycle_listener:
Collaboration graph

Public Member Functions

void testRunStarting (Catch::TestRunInfo const &testRunInfo) override
 Called when test run starts - creates the test database.
 
void testRunEnded (Catch::TestRunStats const &testRunStats) override
 Called when test run ends - drops the test database.
 

Detailed Description

Catch2 listener that manages database lifecycle for tests.

This listener creates a unique test database when tests start running and cleans it up when tests complete. It only creates databases when tests are actually executed, not during test discovery.