withTestApplication

fun <R> withTestApplication(
    test: TestApplicationEngine.() -> R
): R
fun <R> withTestApplication(
    moduleFunction: Application.() -> Unit,
    test: TestApplicationEngine.() -> R
): R
fun <R> withTestApplication(
    moduleFunction: Application.() -> Unit,
    configure: Configuration.() -> Unit = {},
    test: TestApplicationEngine.() -> R
): R

Start test application engine, pass it to test function and stop it