-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Sonar unit test coverage reporting
Add GHA to run unit tests, generate coverage report, and upload the report to SonarCloud. Add configuration to ignore code that shouldn't count for coverage. Relates-to: stolostron/backlog#22706 Signed-off-by: Daniel Farrell <[email protected]>
- Loading branch information
1 parent
13fb714
commit 9a284ee
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
sonar.projectKey=submariner-io_submariner-operator | ||
sonar.projectName=submariner-operator | ||
sonar.organization=submariner-io | ||
sonar.sources=. | ||
sonar.exclusions=**/vendor/**,**/*_test.go,test/e2e/** | ||
sonar.tests=. | ||
sonar.test.inclusions=**/*_test.go,test/e2e/** | ||
sonar.test.exclusions=**/vendor/** | ||
sonar.go.tests.reportPaths=**/junit.xml | ||
sonar.go.coverage.reportPaths=**/unit.coverprofile |