Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
GordonSmith committed Mar 25, 2024
1 parent 9a96204 commit c6b03f2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ jobs:
run: cmake --build build --parallel

- name: test
working-directory: build/test
run: |
ctest
ctest --test-dir ./build/test
- name: collect code coverage
run: bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
7 changes: 7 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,5 +216,12 @@
"-m"
]
}
],
"testPresets": [
{
"name": "xxx",
"description": "",
"displayName": ""
}
]
}
5 changes: 5 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ target_link_libraries(${PROJECT_NAME}
component-model-cpp
)
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 20)
add_test(
NAME ${PROJECT_NAME}
COMMAND ${PROJECT_NAME}
WORKING_DIRECTORY ${ROOT_DIR}
)

if(NOT TEST_INSTALLED_VERSION)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
Expand Down

0 comments on commit c6b03f2

Please sign in to comment.