improve cucumber implementation

This commit is contained in:
2019-08-30 14:25:57 +02:00
parent bc75f5d9e2
commit 45a8f42335

View File

@@ -32,18 +32,16 @@ class RunCucumberTest: En, KoinTest {
} }
init { init {
Before(-2) { _: Scenario -> if (!unitialized) {
if (!unitialized) { config.database = "test"
config.database = "test" config.username = "test"
config.username = "test" config.password = "test"
config.password = "test"
withTestApplication({ module(CUCUMBER) }) { withTestApplication({ module(CUCUMBER) }) {
migrations() migrations()
fixtures() fixtures()
}
unitialized = true
} }
unitialized = true
} }
Before(-1) { scenario: Scenario -> Before(-1) { scenario: Scenario ->