mirror of
https://github.com/bitwarden/android.git
synced 2026-10-23 03:23:53 -05:00
Adding shadow log stream to BaseComposeTest (#68)
This commit is contained in:
1 parent
caba671b92
commit
214df06320
1 file changed
+5
@@ -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