Feature: output list of of possibilities when an enum is typed incorrectly in feature file #344

Closed
newmanne opened this Issue Jun 13, 2012 · 0 comments

Projects

None yet

2 participants

@newmanne

It would be great if when an enum was typed in a file and the step definition tried to match and failed, instead of saying something like:

cucumber.runtime.xstream.converters.ConversionException: Couldn't convert "black" to an instance of: [class com.otpp.tim.acceptance.cucumber.pages.employee.EmployeeAtAGlanceStepDefinitions$Color]

it also output color.values() so that the person writing the feature file could see immediately what all of their options were.

This would be useful for testers who do not want to have to delve into the source code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment