Updated test files to work with gtest

This commit is contained in:
Alejandro Saucedo 2020-09-03 22:20:16 +01:00
parent e666c3f1d6
commit 0b35b5e9d6
11 changed files with 122 additions and 120 deletions

View file

@ -1,24 +1,24 @@
#define CATCH_CONFIG_RUNNER
// clang-format: SPDLOG_ACTIVE_LEVEL must be defined before spdlog.h import
#if DEBUG
#ifndef SPDLOG_ACTIVE_LEVEL
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
#endif
#endif
//#include <spdlog/spdlog.h>
//// clang-format: ranges.h must come after spdlog.h
//#include <fmt/ranges.h>
#include "catch2/catch.hpp"
int main( int argc, char* argv[] ) {
int result = Catch::Session().run( argc, argv );
// global clean-up...
return result;
}
//#define CATCH_CONFIG_RUNNER
//
//// clang-format: SPDLOG_ACTIVE_LEVEL must be defined before spdlog.h import
//#if DEBUG
//#ifndef SPDLOG_ACTIVE_LEVEL
//#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
//#endif
//#endif
//
////#include <spdlog/spdlog.h>
////// clang-format: ranges.h must come after spdlog.h
////#include <fmt/ranges.h>
//
//#include "catch2/catch.hpp"
//
//int main( int argc, char* argv[] ) {
//
// int result = Catch::Session().run( argc, argv );
//
// // global clean-up...
//
// return result;
//}
//