Skip to content
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

Code coverage improvements. #942

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

maaikez
Copy link
Contributor

@maaikez maaikez commented Jan 16, 2025

Describe your changes

Append coverage compiler flags only to specific target (instead of globally). Run script to remove gcda files and orphaned object / gcno files (useful after switching branches)

Issue ticket number and link

Checklist before requesting a review

@maaikez
Copy link
Contributor Author

maaikez commented Jan 16, 2025

TODO: add correct dependency to everest utils as well (also in everest core???)

@@ -191,3 +191,5 @@ endif()
# with gcc 10.x and C++11/14, so we need to publish the
# C++17 standard
target_compile_features(ocpp PUBLIC cxx_std_17)
append_coverage_compiler_flags_to_target(ocpp)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can do this in tests/CMakeLists.txt so these flags don't get added even if you don't want to have coverage enabled

message("The \"ev-dev-tools\" Python3 package is not installed. You can install it going to
`everest-utils/ev-dev-tools` and type `pip install .`")
else()
add_custom_target(cleanup_coverage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a flag so you can disable this

…obally). Run script to remove gcda files and orphaned object / gcno files (useful after switching branches)

Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
@maaikez maaikez force-pushed the feature/coverage_improvements branch from 018dea7 to 0a91a3e Compare January 29, 2025 14:09
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
@maaikez maaikez force-pushed the feature/coverage_improvements branch from 0a91a3e to 6c60b4a Compare January 29, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants