Create Test Suite
This commit is contained in:
11
tests/CMakeLists.txt
Normal file
11
tests/CMakeLists.txt
Normal 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
5
tests/JUI/Vector2.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(Vector2Test, Vector2_Constructor_Defaults) {
|
||||
|
||||
}
|
6
tests/test_main.cpp
Normal file
6
tests/test_main.cpp
Normal 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();
|
||||
}
|
Reference in New Issue
Block a user