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:
parent
561eda8482
commit
8eb195cff6
|
@ -72,6 +72,9 @@ android {
|
||||||
returnDefaultValues = true
|
returnDefaultValues = true
|
||||||
includeAndroidResources = true
|
includeAndroidResources = true
|
||||||
}
|
}
|
||||||
|
unitTests.all {
|
||||||
|
systemProperty 'robolectric.logging.enabled', 'true'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
sourceSets {
|
sourceSets {
|
||||||
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
|
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
|
||||||
|
|
Loading…
Reference in New Issue