[PACT] Allow user to define tests like Cucumber expressions #47

lordofthejars opened this Issue Nov 15, 2016 · 0 comments


None yet

1 participant

Issue Overview

Currently @States only support state names and passing as a Map a map of parameters.
Implement that you can pass parameters as it happens with Cucumber, something like:

  • Consumer
    .states("I have 36 cukes in my belly")
    .states("The following animals: cow, pig, bug")

  • Provider
    @State("I have (\\d+) cukes in my belly")
    public void state(int numberOfCakes){}
    @State("The following animals: (.*)")
    public void state(List<String> animals){}

@lordofthejars lordofthejars self-assigned this Nov 15, 2016
@lordofthejars lordofthejars added this to the 1.0.0.Alpha5 milestone Dec 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment