Join Slack
Powered by
Are there any resources on how to use spek with su...
# spek
j
jacob
02/23/2018, 5:14 AM
Are there any resources on how to use spek with suspend functions?
r
raniejade
02/23/2018, 5:35 AM
I'm not aware of any, but what are you planning to test?
j
jacob
02/23/2018, 6:05 AM
using vertx so a fair amount of stuff runs in coroutines and suspend functions. runBlocking works ok, but obviously not as nice as suspended functions
p
pablisco
02/23/2018, 7:11 AM
I'm not aware. However I wrote this about testing with threads the other day that could be useful. Depending on what are you after.
https://medium.com/@pablisco/testing-with-threads-fb9d8974e06d
j
jacob
02/24/2018, 5:58 AM
@pablisco
thanks 🙂 I'll take a look
l
louiscad
02/27/2018, 4:23 PM
@jacob
Just use
runBlocking
from kotlinx.coroutines
👍 1
j
jacob
02/27/2018, 10:07 PM
@louiscad
that's where I've ended up. now that I understand the concept a little better it makes total sense 🙂
3
Views
Open in Slack
Previous
Next