-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
480d0a1
commit a92e36b
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
find_package(GTest CONFIG REQUIRED) | ||
|
||
add_executable(command_manager_test command_manager_test.cpp) | ||
target_link_libraries(command_manager_test PUBLIC CommandManager GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main) | ||
add_test(NAME CommandManagerTest COMMAND command_manager_test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include <gtest/gtest.h> | ||
|
||
#include <command_manager.hpp> | ||
|
||
TEST(CommandManagerTest, CommandManagerConstructor) | ||
{ | ||
EXPECT_NO_THROW(command_manager::CommandManager cm()); | ||
} | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
::testing::InitGoogleTest(&argc, argv); | ||
return RUN_ALL_TESTS(); | ||
} |