Is it recommended to mix Property-based Testing a...
# kotlintest
r
Is it recommended to mix Property-based Testing and Behavior Spec when using kotlintest. I am confused because I dont know where to define the generators property. Is it in the then clause.
Copy code
import 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.