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

PF-3003: Add code coverage to sonar report #153

Merged
merged 3 commits into from
Jul 12, 2024

Conversation

pshapiro4broad
Copy link
Member

@pshapiro4broad pshapiro4broad commented Jul 12, 2024

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.

@@ -11,9 +11,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
Copy link
Member Author

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

Copy link

sonarcloud bot commented Jul 12, 2024

@pshapiro4broad pshapiro4broad changed the title Add code coverage to sonar report PF-3003: Add code coverage to sonar report Jul 12, 2024
Copy link
Contributor

@okotsopoulos okotsopoulos left a 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.

@pshapiro4broad
Copy link
Member Author

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

@pshapiro4broad pshapiro4broad merged commit b312381 into develop Jul 12, 2024
3 checks passed
@pshapiro4broad pshapiro4broad deleted the ps/add-sonar-coverage branch July 12, 2024 18:42
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.

3 participants