Join Slack
Powered by
For testing, is there a "before each" or "before a...
# multiplatform
d
Dominaezzz
07/29/2022, 8:10 PM
For testing, is there a "before each" or "before all" annotation?
a
Arkadii Ivanov
07/29/2022, 8:25 PM
There is BeforeTest -
https://kotlinlang.org/api/latest/kotlin.test/kotlin.test/-before-test/
d
Dominaezzz
07/29/2022, 8:26 PM
Thanks!
j
Jeff Lockhart
07/29/2022, 10:00 PM
For "before all", there is a `BeforeClass`in
Kotlin/Native
. Depending on your platform targets, you may be able to define your own common annotation and typealias it into the respective platform implementations. See my comment
here
.
10
Views
Open in Slack
Previous
Next