mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 01:15:54 +03:00
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:
parent
e6eb86538f
commit
789cc6b597
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue