Are there any resources on how to use spek with su...
# spek
j
Are there any resources on how to use spek with suspend functions?
r
I'm not aware of any, but what are you planning to test?
j
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
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
@pablisco thanks 🙂 I'll take a look
l
@jacob Just use
runBlocking
from kotlinx.coroutines
👍 1
j
@louiscad that's where I've ended up. now that I understand the concept a little better it makes total sense 🙂