mirror of
https://github.com/bitwarden/android.git
synced 2026-03-21 22:00:42 -05:00
Adding shadow log stream to BaseComposeTest (#68)
This commit is contained in:
committed by
Álison Fernandes
parent
caba671b92
commit
214df06320
@@ -6,6 +6,7 @@ import org.junit.Rule
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
import org.robolectric.annotation.Config
|
||||
import org.robolectric.shadows.ShadowLog
|
||||
|
||||
/**
|
||||
* A base class that can be used for performing Compose-layer testing using Robolectric, Compose
|
||||
@@ -19,4 +20,8 @@ import org.robolectric.annotation.Config
|
||||
abstract class BaseComposeTest {
|
||||
@get:Rule
|
||||
val composeTestRule = createComposeRule()
|
||||
|
||||
init {
|
||||
ShadowLog.stream = System.out
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user