Skip to content

Commit

Permalink
Use OpenClover 4.2.0 for coverage (no license required anymore)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Oct 8, 2017
1 parent 6e17406 commit 3650342
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 17 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ bin/
*.log
*.graphml
coverage.db*
clover.license
out
.metadata
4 changes: 1 addition & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ pipeline {
}
stage('Coverage') {
steps {
withCredentials([file(credentialsId: 'CLOVER_LICENSE', variable: 'ORG_GRADLE_PROJECT_clover.license.path')]) {
sh './gradlew --no-daemon --refresh-dependencies -PenableClover clean cloverHtmlReport cloverXmlReport'
}
sh './gradlew --no-daemon --refresh-dependencies -PenableClover clean cloverHtmlReport cloverXmlReport'
}
post {
success {
Expand Down
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,12 @@ Ask JUnit 5 related questions on [StackOverflow] or chat with us on [Gitter].

## Code Coverage

Code coverage using [Clover] for the latest build is available on the [Jenkins CI server].
We are thankful to [Atlassian] for providing the Clover license free of charge.
Code coverage using [OpenClover] for the latest build is available on the
[Jenkins CI server].

A code coverage report can also be generated locally by executing
`gradlew -PenableClover clean cloverHtmlReport` if you have a local Clover license file
on your computer. The results will be available in
`junit-tests/build/reports/clover/html/index.html`.
`gradlew -PenableClover clean cloverHtmlReport`. The results will be available in
`build/reports/clover/html/index.html`.

## Gradle Build Scans

Expand Down Expand Up @@ -143,9 +142,8 @@ The `junit-platform-console-standalone` JAR does not provide an automatic module
as it is not intended to be used as a module.


[Atlassian]: https://www.atlassian.com/
[Automatic-Module-Name]: http://mail.openjdk.java.net/pipermail/jpms-spec-experts/2017-April/000667.html
[Clover]: https://www.atlassian.com/software/clover/
[OpenClover]: http://openclover.org
[CONTRIBUTING.md]: https://github.com/junit-team/junit5/blob/master/CONTRIBUTING.md
[Gitter]: https://gitter.im/junit-team/junit5
[Jenkins CI server]: https://junit.ci.cloudbees.com/job/JUnit5/job/master/lastSuccessfulBuild/clover-report/
Expand Down
5 changes: 1 addition & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ allprojects { subproj ->
}

dependencies {
clover('com.atlassian.clover:clover:4.1.2')
clover('org.openclover:clover:4.2.0')
}

ext.cloverDir = file("$buildDir/clover")
Expand All @@ -207,10 +207,7 @@ allprojects { subproj ->
def instrumentedJavaSourcesDir = file("$cloverDir/instrumentedSources/java")

task cloverTaskdef {
def cloverLicensePath = (project.hasProperty('clover.license.path')
? project.property('clover.license.path') : rootProject.file('clover.license').absolutePath)
ant.taskdef(resource:'cloverlib.xml', classpath: configurations.clover.asPath)
ant.property(name: 'clover.license.path', value: cloverLicensePath)
}

task cloverInstrumentJava(dependsOn: cloverTaskdef) {
Expand Down
2 changes: 0 additions & 2 deletions clover.license.enc

This file was deleted.

0 comments on commit 3650342

Please sign in to comment.