-
Notifications
You must be signed in to change notification settings - Fork 56
Test coverage report with badge and logo #188
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
Test coverage report with badge and logo #188
Conversation
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
e44b95b
to
e36dc98
Compare
COMMAND ${CMAKE_COMMAND} -E echo "Coverage report generated in ${CMAKE_BINARY_DIR}/coverage/html/index.html" | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} | ||
COMMENT "Generating code coverage report" | ||
) |
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.
This section is a bit of a black magic for me and I can't claim I understand exactly what's going on here. I prob. should figure it out and know better.
if( ENABLE_COVERAGE AND COVERAGE_SUPPORTED ) | ||
# Include config_tests subdirectories | ||
add_subdirectory(config_tests/core) | ||
add_subdirectory(config_tests/util) |
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.
this basically makes sure that congi_tests are run as part of coverage. So if something is only through these tests should technically add coverage. Thought enabling disabling them I didn't see change in coverage.
{ | ||
pathToRaw = std::filesystem::absolute( "../../../.." + image_path ); | ||
} | ||
|
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.
this needed for test to run in two modes
// Only run on the linux CI runners. | ||
#ifdef __LINUX__ | ||
// Run on Linux CI and macOS runners | ||
#if defined( __LINUX__ ) || defined( __APPLE__ ) |
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.
so I guess it works now 🤷
Signed-off-by: Aleksandr Motsjonov <[email protected]>
Signed-off-by: Aleksandr Motsjonov <[email protected]>
Signed-off-by: Aleksandr Motsjonov <[email protected]>
Signed-off-by: Aleksandr Motsjonov <[email protected]>
Signed-off-by: Aleksandr Motsjonov <[email protected]>
Signed-off-by: Aleksandr Motsjonov <[email protected]>
a908048
to
daac863
Compare
* test ci Signed-off-by: Aleksandr Motsjonov <[email protected]> * clang formatting Signed-off-by: Aleksandr Motsjonov <[email protected]> * Check if it might just work Signed-off-by: Aleksandr Motsjonov <[email protected]> * formatting Signed-off-by: Aleksandr Motsjonov <[email protected]> * Revert the revert Signed-off-by: Aleksandr Motsjonov <[email protected]> * revert the enabling Signed-off-by: Aleksandr Motsjonov <[email protected]> --------- Signed-off-by: Aleksandr Motsjonov <[email protected]> Signed-off-by: Savitha M <[email protected]>
* test ci Signed-off-by: Aleksandr Motsjonov <[email protected]> * clang formatting Signed-off-by: Aleksandr Motsjonov <[email protected]> * Check if it might just work Signed-off-by: Aleksandr Motsjonov <[email protected]> * formatting Signed-off-by: Aleksandr Motsjonov <[email protected]> * Revert the revert Signed-off-by: Aleksandr Motsjonov <[email protected]> * revert the enabling Signed-off-by: Aleksandr Motsjonov <[email protected]> --------- Signed-off-by: Aleksandr Motsjonov <[email protected]> Signed-off-by: Mikael Sundell <[email protected]>
* test ci Signed-off-by: Aleksandr Motsjonov <[email protected]> * clang formatting Signed-off-by: Aleksandr Motsjonov <[email protected]> * Check if it might just work Signed-off-by: Aleksandr Motsjonov <[email protected]> * formatting Signed-off-by: Aleksandr Motsjonov <[email protected]> * Revert the revert Signed-off-by: Aleksandr Motsjonov <[email protected]> * revert the enabling Signed-off-by: Aleksandr Motsjonov <[email protected]> --------- Signed-off-by: Aleksandr Motsjonov <[email protected]> Signed-off-by: Mikael Sundell <[email protected]>
* test ci Signed-off-by: Aleksandr Motsjonov <[email protected]> * clang formatting Signed-off-by: Aleksandr Motsjonov <[email protected]> * Check if it might just work Signed-off-by: Aleksandr Motsjonov <[email protected]> * formatting Signed-off-by: Aleksandr Motsjonov <[email protected]> * Revert the revert Signed-off-by: Aleksandr Motsjonov <[email protected]> * revert the enabling Signed-off-by: Aleksandr Motsjonov <[email protected]> --------- Signed-off-by: Aleksandr Motsjonov <[email protected]> Signed-off-by: Mikael Sundell <[email protected]>
* test ci Signed-off-by: Aleksandr Motsjonov <[email protected]> * clang formatting Signed-off-by: Aleksandr Motsjonov <[email protected]> * Check if it might just work Signed-off-by: Aleksandr Motsjonov <[email protected]> * formatting Signed-off-by: Aleksandr Motsjonov <[email protected]> * Revert the revert Signed-off-by: Aleksandr Motsjonov <[email protected]> * revert the enabling Signed-off-by: Aleksandr Motsjonov <[email protected]> --------- Signed-off-by: Aleksandr Motsjonov <[email protected]> Signed-off-by: Mikael Sundell <[email protected]>
No description provided.