Join Slack
Powered by
I’ve been doing a bit of coroutines experimentatio...
# minutest
d
dmcg
02/15/2020, 7:03 PM
I’ve been doing a bit of coroutines experimentation. How does
https://github.com/dmcg/minutest/blob/master/core/src/test/kotlin/dev/minutest/examples/experimental/CoroutinesExampleTests.kt
look
@dave08
,
@Uberto Barbini
?
dmcg
02/15/2020, 10:03 PM
I suspect though that in many cases the subject under test is going to depend on the coroutine context, which means that we’re going to want to make it part of the fixture so it can be initialised in the context?
dmcg
02/16/2020, 12:05 AM
I’ve made an example of what I think that could look like too
https://github.com/dmcg/minutest/blob/master/core/src/test/kotlin/dev/minutest/examples/experimental/CoroutinesExampleTests2.kt
u
Uberto Barbini
02/16/2020, 10:52 AM
It's pretty nice!
d
dave08
02/16/2020, 11:34 AM
It's a nice start 🙂, but I'd actually have to use it to be able to say for sure... thanks for thinking about this!
d
dmcg
02/16/2020, 11:45 AM
Please do let me know - if the abstraction works in practice I’m happy to roll it into Minutest
2
Views
Open in Slack
Previous
Next