mirror of
https://github.com/jellyfin/jellyfin-androidtv.git
synced 2024-11-26 23:50:27 +00:00
480a71d1a6
Tweaks the gradle script to forward on test failures in a way that the stack trace is preserved. Previously, the stack pointed to a line after the test suite, e.g. line 101 on an 80 line file.
43 lines
890 B
Plaintext
43 lines
890 B
Plaintext
plugins {
|
|
alias(libs.plugins.detekt)
|
|
}
|
|
|
|
buildscript {
|
|
dependencies {
|
|
classpath(libs.android.gradle)
|
|
classpath(libs.kotlin.gradle)
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
apply<io.gitlab.arturbosch.detekt.DetektPlugin>()
|
|
|
|
detekt {
|
|
buildUponDefaultConfig = true
|
|
ignoreFailures = true
|
|
config = files("$rootDir/detekt.yaml")
|
|
basePath = rootDir.absolutePath
|
|
|
|
reports {
|
|
sarif.enabled = true
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
// Ensure Junit emits the full stack trace when a unit test fails through gradle
|
|
useJUnit()
|
|
|
|
testLogging {
|
|
events(
|
|
org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED,
|
|
org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_ERROR,
|
|
org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
|
|
)
|
|
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
|
|
showExceptions = true
|
|
showCauses = true
|
|
showStackTraces = true
|
|
}
|
|
}
|