Skip to content

Commit

Permalink
refactor: test project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesDias committed Dec 4, 2022
1 parent 2f02da1 commit a7df3c2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ FetchContent_Declare(
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)

# It must to be declare after test folder
# It must to be declare before the test folder
enable_testing()

# Variables name for target
Expand Down
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ gtest_discover_tests( ${HELLO_INTEGRATION_TEST}
# Unit tests for drivers functions
set(DRIVERS_UNIT_TEST DriversUnitTest)
add_executable( ${DRIVERS_UNIT_TEST}
${TEST_FOLDER_PATH}/unit/gpio_test.cpp
${TEST_FOLDER_PATH}/unit/drivers/gpio_test.cpp
)

target_link_libraries( ${DRIVERS_UNIT_TEST} PUBLIC
Expand All @@ -75,7 +75,7 @@ gtest_discover_tests( ${DRIVERS_UNIT_TEST}
# Unit tests for middleware functions
set(MIDDLEWARE_UNIT_TEST MiddlewareUnitTest)
add_executable( ${MIDDLEWARE_UNIT_TEST}
${TEST_FOLDER_PATH}/unit/led_test.cpp
${TEST_FOLDER_PATH}/unit/middleware/led_test.cpp
)

target_link_libraries( ${MIDDLEWARE_UNIT_TEST} PUBLIC
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit a7df3c2

Please sign in to comment.