ktor
2.0.3
3.0.0
3.0.0-rc-1
3.0.0-beta-2
3.0.0-beta-1
2.3.12
2.2.4
2.0.3
1.6.8
jvmAndNix
ktor-server-test-host
/
io.ktor.server.testing
/
withApplication
with
Application
jvmAndNix
fun
<
R
>
withApplication
(
environment
:
<ERROR CLASS>
=
createTestEnvironment()
,
configure
:
TestApplicationEngine.Configuration
.
(
)
->
Unit
=
{}
,
test
:
TestApplicationEngine
.
(
)
->
R
)
:
R
Content copied to clipboard
Starts a test application engine, passes it to the
test
function, and stops it.