0.6.0 : New HTTP DSL
- RunnableStep is now split between EffectStep and AssertStep
- EffectStep
Session => Session
: It runs a side effect and populates theSession
with values. - AssertStep
Sesssion => StepAssertion[A]
: Describes the expectation of the test.
- EffectStep
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