Skip to content

Commit

Permalink
build: improve logging of exceptions in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalwrench committed Feb 1, 2024
1 parent 0877cc8 commit 76d7730
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import org.gradle.api.Project
import org.gradle.api.plugins.quality.Checkstyle
import org.gradle.api.plugins.quality.CheckstyleExtension
import org.gradle.api.tasks.compile.JavaCompile
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.kotlin.dsl.apply
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.dependencies
Expand Down Expand Up @@ -143,6 +144,14 @@ class InternalEmbracePlugin : Plugin<Project> {
// see: http:https://tools.android.com/tech-docs/unit-testing-support#TOC-Method-...-not-mocked.-
unitTests.isReturnDefaultValues = true
unitTests.isIncludeAndroidResources = true

unitTests {
all { test ->
test.testLogging {
this.exceptionFormat = TestExceptionFormat.FULL
}
}
}
}

buildTypes {
Expand Down

0 comments on commit 76d7730

Please sign in to comment.