diff --git a/test-helpers/src/allButAndroidMain/kotlin/splitties/internal/test/AndroidJUnit4.kt b/test-helpers/src/allButJvmMain/kotlin/splitties/internal/test/AndroidJUnit4.kt similarity index 100% rename from test-helpers/src/allButAndroidMain/kotlin/splitties/internal/test/AndroidJUnit4.kt rename to test-helpers/src/allButJvmMain/kotlin/splitties/internal/test/AndroidJUnit4.kt diff --git a/test-helpers/src/jvmMain/kotlin/splitties/internal/test/AndroidJUnit4.kt b/test-helpers/src/jvmMain/kotlin/splitties/internal/test/AndroidJUnit4.kt new file mode 100644 index 000000000..eaaecd5dd --- /dev/null +++ b/test-helpers/src/jvmMain/kotlin/splitties/internal/test/AndroidJUnit4.kt @@ -0,0 +1,21 @@ +/* + * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. + */ + +package splitties.internal.test + +import org.junit.runner.Description +import org.junit.runner.notification.RunNotifier + +actual typealias AndroidJUnit4 = JUnit4 + +class JUnit4(klass: Class<*>) : Runner() { + + private val actualRunner = org.junit.runners.JUnit4(klass) + + override fun run(notifier: RunNotifier?) { + actualRunner.run(notifier) + } + + override fun getDescription(): Description = actualRunner.description +}