21 lines
675 B
C++
21 lines
675 B
C++
|
#include <gtest/gtest.h>
|
||
|
#include <spdlog/spdlog.h>
|
||
|
|
||
|
#include <print>
|
||
|
#include <utility>
|
||
|
|
||
|
class PreconfigureEnvironment : public ::testing::Environment {
|
||
|
public:
|
||
|
void SetUp() override {
|
||
|
spdlog::set_level(spdlog::level::trace);
|
||
|
std::println("\nPreconfigureEnvironment setup:\n\tCompiled max availabel log level: {}\n\tCurrently set log level: {}",
|
||
|
SPDLOG_ACTIVE_LEVEL,
|
||
|
std::to_underlying(spdlog::get_level()));
|
||
|
}
|
||
|
};
|
||
|
|
||
|
auto main(int argc, char** argv) -> int {
|
||
|
::testing::InitGoogleTest(&argc, argv);
|
||
|
::testing::AddGlobalTestEnvironment(new PreconfigureEnvironment); // NOLINT GTest takes ownership
|
||
|
return RUN_ALL_TESTS();
|
||
|
}
|