Open Hydragyrum opened 1 year ago
Addendum:
Converting to the old Cucumber StepDefs format works
class ApiStepDefs {
@Given("A GET request to the API")
fun a_GET_request_to_the_API() {
// code
}
@When("We execute the request to the {string} endpoint")
fun we_execute_the_request_to_the_endpoint(endpoint: String) {
// code
}
@Then("We get a blank list as a response")
fun we_get_a_blank_list_as_a_response() {
// code
}
}
I would like to be able to use the lambda style though, as it does slightly reduce some boilerplate.
Are the Java 8 style bindings supported with Quarkus-Cucumber?
When I try to define my StepDefs as such:
The test errors out as if the stepdefs were undefined
For completeness, the feature file is:
and the Runner stub
The features, stepdefs and runner are all in the same package.