1
0
mirror of https://github.com/accelforce/Yuito synced 2024-12-22 21:28:08 +01:00

Enable robolectric logging (#3143)

Robolectric normally swallows output from `Log.*` calls in tests and
the code under test. This can make debugging failing tests more
difficult than it needs to be.

Set `robolectric.logging.enabled` to `true` to enable the logs.
This commit is contained in:
Nik Clayton 2023-01-12 19:10:11 +01:00 committed by GitHub
parent 561eda8482
commit 8eb195cff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,9 @@ android {
returnDefaultValues = true
includeAndroidResources = true
}
unitTests.all {
systemProperty 'robolectric.logging.enabled', 'true'
}
}
sourceSets {
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())