Ricjhill
01/10/2020, 1:49 PMimport io.kotlintest.specs.BehaviorSpec
class MyTests : BehaviorSpec() {
init {
given("a broomstick") {
`when`("I sit on it") {
then("I should be able to fly") {
// test code
}
}
`when`("I throw it away") {
then("it should come back") {
// test code
}
}
}
}
}
It appears the Given, When and Then clauses do not link to code like in cucumber.