cedric
05/03/2016, 1:34 PMoverride fun apply(project: Project, context: KobaltContext) {
super.apply(project, context)
jacocoAppService.startInstrumentation().toList().toBlocking().first()
}
@Task(name = "coverage", description = "Emits JaCoCo coverage", reverseDependsOn = arrayOf("test"))
fun coverage(project: Project): TaskResult {
jacocoAppService.stopInstrumentation().map {
println(it.toString())
}.toList().toBlocking().first()
return TaskResult(success = true)
}