https://kotlinlang.org logo
#ktor
Title
# ktor
t

tieskedh

12/14/2020, 1:26 PM
Question: probably it's a real rare use-case, so I get it if it's not supported. I'm using a single class for my client-tests. By expanding it a tiny step every time a test needs something more, it is gradually becoming smarter. (this way mocks can become the real deal). My question is: is it possible to connect the MockEngine of the client with a server in a way that it doesn't create the web-server itself?
n

Nikky

12/14/2020, 1:32 PM
when you run
withTestApplication {}
you get a httpClient reference to use there or not ?
🙈 1
t

tieskedh

12/14/2020, 1:48 PM
Thanks, I was looking for a way more complicated way inside of the client 😉
2 Views