kwik icon indicating copy to clipboard operation
kwik copied to clipboard

Spek integration

Open jcornaz opened this issue 5 years ago • 0 comments

For specification style:

object ExampleSpec : Spek({
  describe("plus operator") {
    property("is associative") { x, y -> x + y == y + x }
  }
})

And for gherkin style:

object ExampleSpec : Spek({
  Feature("plus operator") {
    property("is associative") { x, y -> x + y == y + x }
  }
})

Note: It would be in a dedicated gradle module. Kwik's users should to opt-in for the Spek extensions. The module name could be something like kwik-spek-jvm (Due to limitations on Spek's side, it cannot be multiplatform at the moment.)

jcornaz avatar May 16 '19 06:05 jcornaz