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

zpearce

09/05/2018, 3:59 PM
is there a way to use
withTestApplication
with
HoconApplicationConfig
instead of
MapApplicationConfig
?
б

Бежан Александр

09/05/2018, 8:03 PM
Yes.
Copy code
withApplication(createTestEnvironment {
    this.config = HoconApplicationConfig(ConfigFactory.load("test.conf"))
}) {
    application.main()
}
👍 1
2 Views