Just created a feature request to allow for end-to-end testing with Ktor in Espresso using Idling resources. Right now the path to get there is very jagged, as I tried to explain in the issue. We have worked around the issue for now, but would love official support in a later release. Please up-vote this feature if this would help you out!
https://youtrack.jetbrains.com/issue/KTOR-3230
r
Rustam Siniukov
10/08/2021, 12:03 PM
@e5l please take a look
e
e5l
10/08/2021, 12:05 PM
Yep, I’m going to add the
coroutineContext
field in the configuration of the test environment in the new testing design
e5l
10/08/2021, 12:05 PM
So this should solve the problem.
g
Grégory Lureau
03/14/2022, 2:49 PM
Hello ! Just for visibility on your planning, is it something scheduled for the next release or should I copy/paste the MockEngine in my project and customize it like suggested in the ticket for now? Thanks guys for Ktor btw, I love it!