Open CSchoel opened 3 years ago
As requested, here is your HowTo for setting up codecov:
CODECOV_TOKEN
as name and the copied token from the previous (top-level) step as value.feature/sonarQube
branch](https://github.com/MopeSWTP-SS21/MopeSWTP/compare/feature/sonarQube, but feel free to also do it yourself on your own feature branch.
The merge conflicts should not be too much of an issue.
The optimal strategy would be to cherry-pick my existing commit, but you don't have to do that.build.gradle
.jacocoTestReport
task to generate reports in XML format (see the Gradle example repository):
reports {
xml.enabled true
html.enabled false
}
Update the CI script to create and upload test reports:
./gradlew jacocoTestReport
Upload test reports with:
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN}
Resources:
Update: When #116 is merged, you can use the Jacoco Gradle settings that I already implemented for the code coverage reports for SonarQube.