Skip to content

Use Yadda to generate blank step files #89

@simoami

Description

@simoami

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.

screen shot 2014-04-27 at 1 09 25 pm

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions