bmuschko / gradle-clover-plugin

Gradle plugin for generating a code coverage report using Clover
Apache License 2.0
74 stars 49 forks source link

clover conflict with wiremock #103

Closed ghost closed 7 years ago

ghost commented 7 years ago

When I run ./gradlew build then clover is running as well and I can see that 1 test is failed because of com.github.tomakehurst.wiremock.common.FatalStartupException: java.lang.RuntimeException: java.net.BindException: Address already in use

Does exist any workaround for that (probably wiremock and clover use the same port each time)?

Alex-Vol commented 7 years ago

I am not aware of any ports used by Clover. This is news to me.

You can have clover configured but disabled by adding this additional code in the clover closure

build.gradle

clover {
    enabled = project.hasProperty(cloverOn)
}

Then you can use ./gradlew build -PcloverOn to run with clover enabled.