Catch2 test framework integration.

This commit is contained in:
tamasmeszaros 2019-10-04 11:04:26 +02:00
parent ffa544ade3
commit fe7f2e4d95
14 changed files with 18205 additions and 20 deletions

View file

@ -0,0 +1,5 @@
get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
add_executable(${_TEST_NAME}_tests ${_TEST_NAME}_tests_main.cpp)
target_link_libraries(${_TEST_NAME}_tests test_common libslic3r ${Boost_LIBRARIES} ${TBB_LIBRARIES} ${Boost_LIBRARIES})
prusaslicer_discover_tests(${_TEST_NAME}_tests)

View file

@ -0,0 +1,6 @@
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
TEST_CASE("Is example succesful", "[example]") {
REQUIRE(true);
}