-
Notifications
You must be signed in to change notification settings - Fork 196
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
[full-ci] add docs for generating the coverage report and setting report coverage on sonarcloud #11081
base: master
Are you sure you want to change the base?
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
a90fdfc
to
c29e0ca
Compare
fd9023e
to
670083f
Compare
670083f
to
9867d6c
Compare
9867d6c
to
0251257
Compare
|
Add information about how to generate, where the coverage will be, and how to access it if someone is interested.
|
0251257
to
499672a
Compare
7146acc
to
c846209
Compare
c846209
to
d5f2d4a
Compare
# Ignore "Define a constant instead of duplicating this literal" rule for tests | ||
sonar.issue.ignore.multicriteria.g1.ruleKey=go:S1192 | ||
sonar.issue.ignore.multicriteria.g1.resourceKey=**/*_test.go | ||
|
||
# Ignore "Rename function XXX to match the regular expression ^(_|[a-zA-Z0-9]+)$" rule for tests | ||
sonar.issue.ignore.multicriteria.g2.ruleKey=go:S100 | ||
sonar.issue.ignore.multicriteria.g2.resourceKey=**/*_test.go |
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.
I suppose that we need to ignore "code quality" errors because this Sonar run is only for gathering code coverage.
The "regular" Sonar run that goes with unit tests be the one that we care about for "code quality" feedback.
… the coverage report
d5f2d4a
to
732dd01
Compare
|
Description
This PR adds docs for getting the coverage report form acceptance test and pushes the report to sonarcloud.
the coverage report will be viewable at https://sonarcloud.io/summary/new_code?id=owncloud-1_ocis_acceptance-tests after this pr is merged
output:
~/ocis$ go tool covdata percent -i=somedata github.com/owncloud/ocis/v2/ocis-pkg/account coverage: 100.0% of statements github.com/owncloud/ocis/v2/ocis-pkg/ast coverage: 23.1% of statements github.com/owncloud/ocis/v2/ocis-pkg/broker coverage: 33.3% of statements github.com/owncloud/ocis/v2/ocis-pkg/capabilities coverage: 100.0% of statements github.com/owncloud/ocis/v2/ocis-pkg/checks coverage: 60.0% of statements github.com/owncloud/ocis/v2/ocis-pkg/clihelper coverage: 100.0% of statements github.com/owncloud/ocis/v2/ocis-pkg/config coverage: 88.5% of statements github.com/owncloud/ocis/v2/ocis-pkg/config/configlog coverage: 55.6% of statements github.com/owncloud/ocis/v2/ocis-pkg/config/defaults coverage: 54.5% of statements github.com/owncloud/ocis/v2/ocis-pkg/config/envdecode coverage: 42.4% of statements github.com/owncloud/ocis/v2/ocis-pkg/config/parser coverage: 86.2% of statements github.com/owncloud/ocis/v2/ocis-pkg/conversions coverage: 44.4% of statements github.com/owncloud/ocis/v2/ocis-pkg/cors coverage: 100.0% of statements github.com/owncloud/ocis/v2/ocis-pkg/crypto coverage: 58.2% of statements github.com/owncloud/ocis/v2/ocis-pkg/generators coverage: 77.8% of statements github.com/owncloud/ocis/v2/ocis-pkg/handlers coverage: 49.0% of statements github.com/owncloud/ocis/v2/ocis-pkg/keycloak coverage: 0.0% of statements github.com/owncloud/ocis/v2/ocis-pkg/kql coverage: 49.5% of statements github.com/owncloud/ocis/v2/ocis-pkg/l10n coverage: 17.0% of statements github.com/owncloud/ocis/v2/ocis-pkg/ldap coverage: 78.6% of statements github.com/owncloud/ocis/v2/ocis-pkg/log coverage: 65.8% of statements github.com/owncloud/ocis/v2/ocis-pkg/middleware coverage: 50.0% of statements github.com/owncloud/ocis/v2/ocis-pkg/natsjsregistry coverage: 65.2% of statements github.com/owncloud/ocis/v2/ocis-pkg/oidc coverage: 46.7% of statements github.com/owncloud/ocis/v2/ocis-pkg/registry coverage: 80.2% of statements github.com/owncloud/ocis/v2/ocis-pkg/roles coverage: 83.9% of statements github.com/owncloud/ocis/v2/ocis-pkg/service/debug coverage: 88.1% of statements github.com/owncloud/ocis/v2/ocis-pkg/service/grpc coverage: 62.2% of statements github.com/owncloud/ocis/v2/ocis-pkg/service/grpc/handler/ratelimiter coverage: 21.4% of statements github.com/owncloud/ocis/v2/ocis-pkg/service/http coverage: 86.4% of statements github.com/owncloud/ocis/v2/ocis-pkg/shared coverage: 47.4% of statements github.com/owncloud/ocis/v2/ocis-pkg/structs coverage: 100.0% of statements github.com/owncloud/ocis/v2/ocis-pkg/sync coverage: 35.7% of statements github.com/owncloud/ocis/v2/ocis-pkg/tracing coverage: 14.8% of statements github.com/owncloud/ocis/v2/ocis-pkg/version coverage: 72.7% of statements github.com/owncloud/ocis/v2/ocis-pkg/x/io/fsx coverage: 90.0% of statements github.com/owncloud/ocis/v2/ocis-pkg/x/path/filepathx coverage: 100.0% of statements
or the webui view
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: