1#ifndef UTOPIA_CORE_TESTTOOLS_FIXTURES_HH
2#define UTOPIA_CORE_TESTTOOLS_FIXTURES_HH
8#include <yaml-cpp/yaml.h>
9#include <spdlog/spdlog.h>
10#include <spdlog/sinks/stdout_color_sinks.h>
13#include "../../data_io/cfg_utils.hh"
26template<
class RNGType=Utopia::DefaultRNG>
43 std::shared_ptr<spdlog::logger>
log;
46 std::shared_ptr<RNG>
rng;
61 auto logger = spdlog::get(
"test");
65 logger = spdlog::stdout_color_mt(
"test");
69 logger->set_level(spdlog::level::trace);
70 spdlog::set_pattern(
"[%T.%e] [%^%l%$] [%n] %v");
77 rng(std::make_shared<RNG>(std::random_device()()))
79 log->info(
"BaseInfrastructure fixture set up.");
84 log->info(
"No test configuration file loaded.");
YAML::Node Config
Type of a variadic dictionary-like data structure used throughout Utopia.
Definition types.hh:71
Container select_entities(const Manager &mngr, const DataIO::Config &sel_cfg)
Select entities according to parameters specified in a configuration.
Definition select.hh:213