Updated googletest to release-1.12.1 and catch2 to v3.3.2

This commit is contained in:
Stef Helling committed 2023-06-09 14:21:43 +02:00
1 parent 103ef4a00f
commit ddf8581e48
6 files changed
+16 -17613

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
set(TEST_NAME GildedRoseCatch2UnitTests)
add_executable(${TEST_NAME})
target_sources(${TEST_NAME} PRIVATE GildedRoseCatch2UnitTests.cc)
target_link_libraries(${TEST_NAME} lib src)
target_link_libraries(${TEST_NAME} lib src Catch2::Catch2 Catch2::Catch2WithMain )
set_property(TARGET ${TEST_NAME} PROPERTY CXX_STANDARD 11)
add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME})
@@ -1,5 +1,5 @@
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "Catch.hpp"
#include "catch2/catch_all.hpp"
#include "GildedRose.h"
TEST_CASE("GildedRoseUnitTest", "Foo")