⬆️ Updated catch2 to 3.3
This commit is contained in:
@ -1,14 +1,15 @@
|
||||
project(moFileReaderTest)
|
||||
|
||||
find_package(Catch2 REQUIRED)
|
||||
|
||||
include(CTest)
|
||||
include(Catch)
|
||||
include(codecov)
|
||||
|
||||
add_executable(${PROJECT_NAME} main.cpp test.cpp link_test.cpp)
|
||||
add_executable(${PROJECT_NAME} test.cpp link_test.cpp)
|
||||
target_include_directories(moFileReaderTest PRIVATE ${CMAKE_SOURCE_DIR}/include)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE Catch2::Catch2)
|
||||
catch_discover_tests(${PROJECT_NAME} REPORTER sonarqube OUTPUT_DIR reports)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE Catch2::Catch2WithMain)
|
||||
catch_discover_tests(${PROJECT_NAME})
|
||||
add_coverage(${PROJECT_NAME})
|
||||
coverage_evaluate()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "catch.hpp"
|
||||
#include <catch2/catch_all.hpp>
|
||||
#include "moFileReader.hpp"
|
||||
|
||||
using namespace moFileLib;
|
||||
|
@ -1,3 +0,0 @@
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include "catch.hpp"
|
||||
#include "catch_reporter_sonarqube.hpp"
|
@ -1,4 +1,4 @@
|
||||
#include "catch.hpp"
|
||||
#include <catch2/catch_all.hpp>
|
||||
#include "moFileReader.hpp"
|
||||
|
||||
using namespace moFileLib;
|
||||
|
Reference in New Issue
Block a user