-
Notifications
You must be signed in to change notification settings - Fork 1
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
PF-3003: Add code coverage to sonar report #153
Conversation
@@ -11,9 +11,9 @@ jobs: | |||
build: | |||
runs-on: ubuntu-latest | |||
steps: | |||
- uses: actions/checkout@v3 | |||
- uses: actions/checkout@v4 |
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.
drive-by change, updated these to the current versions
|
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.
Thank you!
Note that overall coverage is only 66%, but that number is skewed by the stairctl subproject which has no unit tests.
Very much an aside / out of scope but I am personally in favor of removing stairctl subproject: it doesn't work and I don't think we have any intention of investing in it.
I created a ticket for the work to remove stairctl (or fix it, if we have a case where it might be useful): https://broadworkbench.atlassian.net/browse/PF-3004 |
Generate and push code coverage results to the repo's sonar scan.
Sonar support was added in #126, but since the build wasn't generating coverage data there wasn't any coverage in the sonar scan.
I generated a sonar coverage report by running locally, at PR creation time the results are here: https://sonarcloud.io/component_measures?id=DataBiosphere_stairway&metric=coverage&view=list
Note that overall coverage is only 66%, but that number is skewed by the
stairctl
subproject which has no unit tests.Also note, the coverage report for this PR will be empty since sonar only shows coverage for files included in the current commit, and no java code files were changed in this PR.