withTestApplication

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

Starts a test application engine, passes it to the test function, and stops it.