-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Labels
Description
I would like to know if I can take advantage of the parser to fetch the gwt steps so that I can generate empty step definitions.
I can retrieve the list of steps in a text form as shown below, but I still need to strip the GWT keywords from the step text in a way that supports localization.
The idea goal would be to come up with an array of steps like this:
var steps = [
{ type: 'given', text: 'there are 100 bottles on the wall', raw: 'Given there are 100 bottles on the wall' },
{ type: 'when', text: '1 bottle falls off the wall', raw: 'When 1 bottle falls off the wall' },
...
];
If this is possible, can you give some pointers?
simontegg
