|
ORE Studio 0.0.4
|
Testing infrastructure common to all test projects. More...
Classes | |
| class | database_helper |
| Provides database setup and cleanup utilities for tests. More... | |
| class | database_lifecycle_listener |
| Catch2 listener that manages database lifecycle for tests. More... | |
| class | logging_listener |
| Catch2 event listener that sets up logging for each test case and logs all test events to Boost.Log files. More... | |
| class | scoped_database_helper |
| Provides database setup and cleanup utilities for tests. More... | |
| class | test_database_manager |
| Manages isolated test databases for parallel test execution. More... | |
Functions | |
| template<typename Awaitable > | |
| void | run_coroutine_test (boost::asio::io_context &io_context, Awaitable &&awaitable) |
Testing infrastructure common to all test projects.
Provides comprehensive testing utilities for ORE Studio components using Catch2. Key features:
Usage: Register the listeners in each test's main.cpp: CATCH_REGISTER_LISTENER(ores::testing::logging_listener) CATCH_REGISTER_LISTENER(ores::testing::database_lifecycle_listener)
The logging_listener initializes logging per test case, the database_lifecycle_listener creates/drops test databases.