feat: split tests into per-suite files
This commit is contained in:
+12
-2
@@ -1,5 +1,13 @@
|
||||
add_executable(destrum_tests
|
||||
destrum_tests.cpp
|
||||
main.cpp
|
||||
TestUtils.h
|
||||
core_tests.cpp
|
||||
serialization_tests.cpp
|
||||
physics_tests.cpp
|
||||
assets_tests.cpp
|
||||
graphics_tests.cpp
|
||||
ui_tests.cpp
|
||||
gameplay_tests.cpp
|
||||
${CMAKE_SOURCE_DIR}/lightkeeper/src/components/Activatable.cpp
|
||||
${CMAKE_SOURCE_DIR}/lightkeeper/src/components/Interactable.cpp
|
||||
${CMAKE_SOURCE_DIR}/lightkeeper/src/components/InteractableButton.cpp
|
||||
@@ -26,4 +34,6 @@ target_link_libraries(destrum_tests PRIVATE destrum::destrum)
|
||||
|
||||
destrum_enable_warnings(destrum_tests)
|
||||
|
||||
add_test(NAME destrum_tests COMMAND destrum_tests)
|
||||
foreach(suite core serialization physics assets graphics ui gameplay)
|
||||
add_test(NAME destrum_tests.${suite} COMMAND destrum_tests ${suite})
|
||||
endforeach()
|
||||
|
||||
Reference in New Issue
Block a user