Skip to content

Commit

Permalink
added message to check if coverage is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Jan 29, 2024
1 parent 2e2d774 commit 9df8576
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ foreach (PYTHON_TEST_FILE ${PYTHON_TEST_FILES})
string (REPLACE "/" "." PYTHON_TEST_NAME ${PYTHON_TEST_FILE_BASE})
# Add the test
if (${ENABLE_COVERAGE})
message (STATUS "${PYTHON_TEST_NAME} test will run with code coverage")
add_test (NAME ${PYTHON_TEST_NAME} COMMAND coverage run -m unittest ${PYTHON_TEST_NAME})
else ()
add_test (NAME ${PYTHON_TEST_NAME} COMMAND python -m unittest ${PYTHON_TEST_NAME})
Expand Down

0 comments on commit 9df8576

Please sign in to comment.