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.
Endringer for Sonar:
Feil:
Finner ikke output fra JaCoCo, ref.:
No coverage report can be found with sonar.coverage.jacoco.xmlReportPaths='property(org.gradle.api.file.Directory,fixed(class org.gradle.api.internal.file.DefaultFilePropertyFactory$FixedDirectory,**your-source-path-here**))/reports/jacoco/test/jacocoTestReport.xml'. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
Løsning:
Nye Sonar finner tilsynelatende default output fra JaCoCo automagisk.
Endring:
Cleanup, dvs. fjerner eksplisitt config for JaCoCo output og Sonar input.
Dokumentasjon:
https://docs.sonarsource.com/sonarcloud/advanced-setup/ci-based-analysis/sonarscanner-for-gradle/#additional-defaults-when-jacoco-plugin-is-applied
Disclaimer:
Ikke manuelt testet på alle 90+ builds, men følger opp som del av annet arbeid på workflows.