SBT plugin to integrate with Clover for Java code coverage
In project/plugins.sbt
resolvers += Resolver.url("Plugins",
url("http://dl.bintray.com/shanbin/sbt-plugins/"))(Resolver.ivyStylePatterns)
addSbtPlugin("com.github.shanbin" %% "sbt-clover" % "0.0.1")
A single task to run tests with instrumented sources and generate XML and HTML reports
sbt clover:clover
All settings and tasks are under clover
scope
Setting | Default Value |
---|---|
cloverLicensePath | baseDirectory / "clover.license" |
cloverVersion | 4.0.6 |
e.g.
import clover.CloverSbtPlugin
cloverLicensePath in CloverSbtPlugin.cloverConfig := "/etc/clover/license.txt"
- clover:setup
- clover:test
- clover:clover