You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kotest-extensions-android/kotest-extensions-android-tests/src/test/kotlin/br/com/colman/kotest/android/extensions/ContainedRobolectricTest.kt
Copy file name to clipboardExpand all lines: kotest-extensions-android/src/main/kotlin/br/com/colman/kotest/android/extensions/robolectric/ContainedRobolectricRunner.kt
+1
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ internal class ContainedRobolectricRunner(
Copy file name to clipboardExpand all lines: kotest-extensions-android/src/main/kotlin/br/com/colman/kotest/android/extensions/robolectric/RobolectricExtension.kt
+8-19
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,11 @@ import io.kotest.core.spec.Spec
8
8
importio.kotest.core.test.TestCase
9
9
importio.kotest.core.test.TestResult
10
10
importio.kotest.core.test.isRootTest
11
-
importkotlinx.coroutines.asCoroutineDispatcher
12
-
importkotlinx.coroutines.withContext
13
11
importorg.robolectric.annotation.Config
14
-
importorg.robolectric.internal.bytecode.Sandbox
12
+
importjava.util.WeakHashMap
15
13
importkotlin.reflect.KClass
16
14
importkotlin.reflect.full.findAnnotation
17
15
importkotlin.time.Duration
18
-
importjava.util.WeakHashMap
19
-
importjava.util.concurrent.ExecutorService
20
16
21
17
/**
22
18
* We override TestCaseExtension to configure the Robolectric environment because TestCase intercept
@@ -113,21 +109,14 @@ class RobolectricExtension : ConstructorExtension, TestCaseExtension {
113
109
execute:suspend (TestCase) ->TestResult,
114
110
): TestResult {
115
111
val containedRobolectricRunner = runnerMap[testCase.spec]!!
116
-
// Using sdkEnvironment.executorService to ensure Robolectric's
117
-
// looper state doesn't carry over to the next test class.
0 commit comments