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

guyheylens

05/02/2019, 3:22 PM
When you create a new project in Intellij through the ktor plugin I saw that in the Application.Module there is a default parameter testing assigned to false. What is the purpose of this parameter?
d

Dennis Schröder

05/03/2019, 11:13 AM
You can use it to change
things
that should be diff when running the application from the test side.
Copy code
if (testing) {
    connectDB = TestDBConnection()
}
For example.
👍 1
2 Views