Create Test Suite

This commit is contained in:
scientiist
2023-05-19 22:48:51 -05:00
parent 8a2a326651
commit 71d7743c55
3 changed files with 22 additions and 0 deletions

11
tests/CMakeLists.txt Normal file
View File

@@ -0,0 +1,11 @@
# Tests
file(GLOB_RECURSE TEST_SRCS CONFIGURE_DEPENDS "JUI/*.cpp")
# Add source to this project's executable.
add_executable(JUITest ${TEST_SRCS})
target_link_libraries(JUITest PUBLIC JUI)
include_directories("include")
add_test(NAME, "JUITest" COMMAND JUITest)

5
tests/JUI/Vector2.cpp Normal file
View File

@@ -0,0 +1,5 @@
#include <gtest/gtest.h>
TEST(Vector2Test, Vector2_Constructor_Defaults) {
}

6
tests/test_main.cpp Normal file
View File

@@ -0,0 +1,6 @@
#include <gtest/gtest.h>
GTEST_API_ int main(int argc, char **argv) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}