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

Optimize generating code coverage report #676

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

mwperina
Copy link
Member

  • Add debug logging to bluechi_test.command module
  • Optimize generating code coverage report

Signed-off-by: Martin Perina <mperina@redhat.com>
1. Gather info files from all tests into a list and then run lcov to
   merge those info files into a single file only once
2. Use Python API to gather info files
3. Store generated info file as a part of the integration tests result

Signed-off-by: Martin Perina <mperina@redhat.com>
@mwperina
Copy link
Member Author

On my machine the time required to generate HTML code coverage reports was decreased roughly from 10 to 3 seconds.

@mwperina
Copy link
Member Author

@ArtiomDivak

Copy link
Member

@engelmi engelmi left a comment

Choose a reason for hiding this comment

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

LGTM

@mwperina mwperina merged commit 482b029 into eclipse-bluechi:main Dec 22, 2023
17 checks passed
@mwperina mwperina deleted the optimize-code-coverage-2 branch December 22, 2023 13:36
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