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

quiqua

06/21/2019, 11:40 AM
Hi! When running tests, whats the difference between
TestApplicationEngine
and
withTestApplication
? Also do I have to call
server.start
with
TestApplicationEngine
?
c

cy

06/21/2019, 11:44 AM
withTestApplication
creates
TestApplicationEngine
under the hood. It also does start and stop.
Most likely you don't need to create TestApplicationEngine manually