[full-ci] add code coverage flag to the debug build and add docs for generating the coverage report #11081
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds build flag to create a code-coverage report and docs for getting the report
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: