exlcuding the slf4j logger from the test dependencies

the videocache dependency includes slf4j which in turn causes mockk to reflectively attempt to call real Log functions, which crashes the units tests due to the stub android.jar
This commit is contained in:
Adam Brown 2021-09-27 17:16:36 +01:00
parent e6eb86538f
commit 789cc6b597

View file

@ -314,6 +314,11 @@ android {
}
}
configurations {
// videocache includes a sl4j logger which causes mockk to attempt to call the static android Log
testImplementation.exclude group: 'org.slf4j', module: 'slf4j-android'
}
dependencies {
implementation project(":matrix-sdk-android")
@ -490,6 +495,7 @@ dependencies {
// TESTS
testImplementation libs.tests.junit
testImplementation libs.tests.kluent
testImplementation libs.mockk.mockk
// Plant Timber tree for test
testImplementation libs.tests.timberJunitRule