-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude executables from coverage #5042
Conversation
and yet coverage is reduced somehow? |
What hahah how? Zu früh gefreut |
scheint so ja.. when i look at the report it still says there are tracked lines in those files: https://app.codecov.io/gh/valhalla/valhalla/tree/cb-coverage/src so maybe we just have the flag to do the exclusions wrong? i saw you put multiple on the same argument maybe you have to specify the flag multiple times, once for each exclude? |
CMakeLists.txt
Outdated
@@ -360,7 +360,7 @@ if(ENABLE_COVERAGE) | |||
|
|||
set(FASTCOV_PATH ${VALHALLA_SOURCE_DIR}/third_party/fastcov/fastcov.py) | |||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/coverage.info | |||
COMMAND ${FASTCOV_PATH} -d . --exclude /usr/ third_party/ ${CMAKE_CURRENT_BINARY_DIR}/ --lcov -o coverage.info | |||
COMMAND ${FASTCOV_PATH} -d . --exclude /usr/ third_party/ src/valhalla_ src/mjolnir/valhalla_ ${CMAKE_CURRENT_BINARY_DIR}/ --lcov -o coverage.info |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe for things that arent directories you need wildcards or something..
i noticed the coverage still doesnt quite agree so there is still more to update here |
Issue
fastcov
uses substring matching to exclude files, so passingsrc/valhalla_
andsrc/mjolnir/valhalla_
should do the trick. Tested locally and worked as expected.