20#ifndef ORES_TESTING_DATABASE_LIFECYCLE_LISTENER_HPP
21#define ORES_TESTING_DATABASE_LIFECYCLE_LISTENER_HPP
24#include <catch2/reporters/catch_reporter_event_listener.hpp>
25#include "ores.logging/make_logger.hpp"
39 inline static std::string_view logger_name =
40 "ores.testing.database_lifecycle_listener";
44 static auto instance = make_logger(logger_name);
49 using Catch::EventListenerBase::EventListenerBase;
59 void testRunEnded(Catch::TestRunStats
const& testRunStats)
override;
62 std::string test_tenant_id_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Testing infrastructure common to all test projects.
Definition database_helper.hpp:30
Catch2 listener that manages tenant lifecycle for tests.
Definition database_lifecycle_listener.hpp:37
void testRunStarting(Catch::TestRunInfo const &testRunInfo) override
Called when test run starts - provisions a test tenant.
Definition database_lifecycle_listener.cpp:32
void testRunEnded(Catch::TestRunStats const &testRunStats) override
Called when test run ends - deprovisions the test tenant.
Definition database_lifecycle_listener.cpp:69