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

Trying to reach code coverage 100 % again #91

Merged
merged 1 commit into from
Nov 2, 2024
Merged

Conversation

oxisto
Copy link
Contributor

@oxisto oxisto commented Oct 31, 2024

This PR finally lifts us to 100 % 🚀 by adding the remaining test cases.

It also includes a workaround to fix an incorrect code coverage XML produced by Kover and incorrectly parsed by codecov. Basically Kover produced coverage information on a line that had neither covered nor uncovered instructions. While Kover's HTML report says this is "ok", codecov classifies it as a miss. In reality, the line in the XML should not be there at all.

I have added issues to both projects, to hopefully fix this issue:

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
...io/github/csaf/sbom/retrieval/RetrievedProvider.kt 100.00% <ø> (+2.22%) ⬆️
...b/csaf/sbom/retrieval/requirements/Requirements.kt 100.00% <100.00%> (+10.41%) ⬆️
...ures/kotlin/io/github/csaf/sbom/validation/Good.kt 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

@oxisto oxisto requested a review from milux October 31, 2024 22:25
@oxisto oxisto marked this pull request as ready for review October 31, 2024 22:26
Copy link
Collaborator

@milux milux left a comment

Choose a reason for hiding this comment

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

LGTM

@milux milux merged commit b78f9f9 into main Nov 2, 2024
6 checks passed
@milux milux deleted the trying-100-again branch November 2, 2024 10:05
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