mirror of
https://github.com/bitwarden/android.git
synced 2026-04-27 19:38:42 -05:00
Apply the RobolectricTestRunner to the BaseRobolectricTest (#1316)
This commit is contained in:
committed by
Álison Fernandes
parent
5e5caa58b0
commit
b4b12f3da7
@@ -1,8 +1,8 @@
|
||||
package com.x8bit.bitwarden.ui.platform.base
|
||||
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||
import dagger.hilt.android.testing.HiltTestApplication
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
import org.robolectric.annotation.Config
|
||||
import org.robolectric.shadows.ShadowLog
|
||||
|
||||
@@ -13,7 +13,7 @@ import org.robolectric.shadows.ShadowLog
|
||||
application = HiltTestApplication::class,
|
||||
sdk = [Config.NEWEST_SDK],
|
||||
)
|
||||
@RunWith(AndroidJUnit4::class)
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
abstract class BaseRobolectricTest {
|
||||
init {
|
||||
ShadowLog.stream = System.out
|
||||
|
||||
Reference in New Issue
Block a user