A plugin to enable the use of SCCT in a gradle Scala project.
buildscript {
repositories {
maven { url 'http://mtkopone.github.com/scct/maven-repo' }
maven { url 'https://github.com/maiflai/mvn-repo/raw/master/snapshots' }
}
dependencies {
classpath 'com.github.maiflai:gradle-scct:0.1-SNAPSHOT'
}
}
apply plugin: 'scct'
dependencies {
scct 'reaktor:scct_2.10:0.2-SNAPSHOT'
compile 'org.scala-lang:scala-library:2.10.1'
}This creates an additional task testCoverage which will run tests against instrumented code
- instrumenting main scala code
- running JUnit tests against instrumented scala code
- failing the build on lack of coverage