Skip to content

0.8.1 : Maintenance

Compare
Choose a tag to compare
@agourlay agourlay released this 18 Jun 18:39
· 2917 commits to master since this release

Maintenance release introducing the following changes.

  • DSL structure changed : step statements are not limited to I, a, assert anymore.
  • New APIs on Http DSL's built-in steps : addHeaders and addParams without losing the existing values.
  • New bloc AttachAs which behaves like Attach but gives an additional label to the nested step execution.
Scenario("demonstrate DSL composition") {
  And assert superhero_exists("batman")
}

def superhero_exists(name: String) =
  AttachAs("superhero exists") {
    When I get("/superheroes/Batman")
    Then assert status.is(200)
  }

One breaking change to notice:

  • assert_not has been removed as it was impractical and badly designed. Please report any issues with this decision.