Codacy integration (#87)
This commit is contained in:
@ -30,6 +30,7 @@ allprojects {
|
||||
apply(plugin = "io.gitlab.arturbosch.detekt")
|
||||
apply(plugin = "com.adarshr.test-logger")
|
||||
apply(plugin = "idea")
|
||||
apply(plugin = "jacoco")
|
||||
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
kotlinOptions {
|
||||
@ -37,6 +38,21 @@ allprojects {
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<Test>() {
|
||||
finalizedBy(tasks.withType(JacocoReport::class))
|
||||
}
|
||||
|
||||
tasks.withType<JacocoReport>() {
|
||||
reports {
|
||||
html.required.set(true)
|
||||
xml.required.set(true)
|
||||
}
|
||||
}
|
||||
|
||||
configure<JacocoPluginExtension> {
|
||||
toolVersion = "0.8.7"
|
||||
}
|
||||
|
||||
configure<TestLoggerExtension> {
|
||||
theme = ThemeType.MOCHA
|
||||
setLogLevel("lifecycle")
|
||||
|
Reference in New Issue
Block a user