Skip to content

Commit

Permalink
backend: add main to unit tests runner
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVautherin committed Apr 18, 2018
1 parent 04d0bda commit 37f2459
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.1)

add_executable(unit_tests_backend
action_service_impl_test.cpp
backend_main.cpp
connection_initiator_test.cpp
core_service_impl_test.cpp
mission_service_impl_test.cpp
Expand Down
7 changes: 7 additions & 0 deletions backend/test/backend_main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <gmock/gmock.h>

int main(int argc, char *argv[])
{
::testing::InitGoogleMock(&argc, argv);
return RUN_ALL_TESTS();
}

0 comments on commit 37f2459

Please sign in to comment.