🎉 Added test coverage to sonarscan
This commit is contained in:
@ -3,11 +3,14 @@ find_package(Catch2 REQUIRED)
|
||||
|
||||
include(CTest)
|
||||
include(Catch)
|
||||
include(codecov)
|
||||
|
||||
add_executable(${PROJECT_NAME} main.cpp 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})
|
||||
catch_discover_tests(${PROJECT_NAME} REPORTER sonarqube OUTPUT_DIR reports)
|
||||
add_coverage(${PROJECT_NAME})
|
||||
coverage_evaluate()
|
||||
|
||||
add_custom_command(
|
||||
TARGET ${PROJECT_NAME} POST_BUILD
|
||||
|
Reference in New Issue
Block a user