Collection and publication of coverage-data#143
Merged
Conversation
6ebabc4 to
17e1778
Compare
5d44f1e to
f9396e0
Compare
Signed-off-by: Simon A. F. Lund <os@safl.dk>
Signed-off-by: Simon A. F. Lund <os@safl.dk>
This update modifies the GitHub Actions workflow to integrate code
coverage reporting with Coveralls. It includes steps to collect,
combine, and publish coverage data. The following supporting changes
were also added:
* feat: add config-file for the 'coverage' cli-tool
* feat(git-ignore): add '.coverage' directory to .gitignore
- The '.coverage' directory is generated by 'coverage'/'coverage.py'
during unittest runs. Ignoring it prevents accidental inclusion in
the repository.
* feat(mk/install): add injection of pytest-cov
* feat(mk/test): add use of 'coverage' when running pytest
Signed-off-by: Morten B. Rasmussen <m.rasmussen@samsung.com>
Signed-off-by: Simon A. F. Lund <os@safl.dk>
Signed-off-by: Simon A. F. Lund <os@safl.dk>
Signed-off-by: Simon A. F. Lund <os@safl.dk>
f9396e0 to
711ddc9
Compare
Signed-off-by: Simon A. F. Lund <os@safl.dk>
The coverage.py tool was not tracking cijoe scripts executed via workflows, leaving a substantial amount of tested code untracked for coverage. This issue is similar to one reported previously: coveragepy/coveragepy#1002 This commit addresses the problem by ensuring dynamically loaded Python modules are defined using their full package name. For example, instead of: example_script_default The full package name is now used: cijoe.core.scripts.example_script_default This change enables proper coverage tracking for these scripts. Signed-off-by: Simon A. F. Lund <os@safl.dk>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a rebase of #111 on top of main.