Join Slack
Communities
Powered by
Is there a kotlin.test analog to JUnit `@RunWith(P...
# test
k
kevin.cianfarini
10/01/2020, 3:11 PM
Is there a kotlin.test analog to JUnit
@RunWith(Parameterized::class)
?
b
bnorm
10/03/2020, 6:12 PM
Not that I'm aware of but I've gotten around this by creating an abstract test class which takes constructor parameters and implementing it multiple times for each variant. You can see an example here:
https://github.com/square/okio/blob/master/okio/src/commonTest/kotlin/okio/BufferedSourceTest.kt
bnorm
10/03/2020, 6:12 PM
@kevin.cianfarini
^
k
kevin.cianfarini
10/05/2020, 1:19 PM
Makes sense. Thanks!
7
Views
Open in Slack
Previous
Next