Project-Books / books-api

GraphQL Books API
https://project-books.github.io/#books-api
MIT License
36 stars 59 forks source link

Jacoco report exclude 122 #138

Closed Wildschut closed 2 years ago

Wildschut commented 2 years ago

Summary of change

Attempt to Narrowing the Focus of sonarqube code coverage regarding the files/paths mentioned in the issue.

Related issue

Closes #122

Pull request checklist

Please keep this checklist in & ensure you have done the following:

For any of the optional checkboxes (e.g. the screenshots one), still check it if it does not apply.

If in doubt, get in touch with us via our Slack workspace or by creating a new Q&A discussion on GitHub

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

knjk04 commented 2 years ago

@Wildschut Is this ready to be merged in?

Wildschut commented 2 years ago

Just to recap on the pr,

the goal of this commit was to exclude the BooksApiApplication class and all the model classes from code coverage.

As far as I can tell, the jacoco report is excluding it. But sonarcloud wasn't. This commit addresses that.

How do I verify the results? The build check doesn't show code coverage results just the files changed...

knjk04 commented 2 years ago

@Wildschut Apologies for the late reply. Thanks for the recap!

This looks good to me, so I'll merge this in. If it doesn't change the code coverage, I'll edit the exclusions manually in SonarCloud.

Thanks for your help with this!

knjk04 commented 2 years ago

@Wildschut Apologies for the late reply. Thanks for the recap!

This looks good to me, so I'll merge this in. If it doesn't change the code coverage, I'll edit the exclusions manually in SonarCloud.

Thanks for your help with this!