Skip to content

0.6.0 : New HTTP DSL

Compare
Choose a tag to compare
@agourlay agourlay released this 10 Feb 19:07
· 3097 commits to master since this release
  • RunnableStep is now split between EffectStep and AssertStep
    • EffectStep Session => Session : It runs a side effect and populates the Session with values.
    • AssertStep Sesssion => StepAssertion[A] : Describes the expectation of the test.

The migration is rather easy as EffectStep replace RunnableStep.effectful

  • New DSL for HTTP built-in steps using a fluent API
    • status.is(...)
    • body.is(...)
    • body.ignoring("key1", "key2").is(...)
    • body.path("key").is(...)
    • body.asArray.hasSize(n)
    • and a lot more see the examples

You can compose several segment to express exactly what you want

  • body.path(root.results).asArray.hasSize(1)
  • HTTP verbs are not capitalized anymore
    • When I get("/superheroes")
  • beforeEachScenario and afterEachScenario now take a varargs of Step