Skip to content
This repository was archived by the owner on May 20, 2021. It is now read-only.
This repository was archived by the owner on May 20, 2021. It is now read-only.

Include plaintext (and possibly remove expressions) from generate-snippet #7

Description

@ciaranmcnulty

Currently a cucumber expression is sent in the generate snippets command, rather than leaving it to the language-specific program to generate the expression.

This will delay integration with cucumbers that don't currently support expressions, and ties us into using expressions. In Behat for instance we currently support regex and turnip expressions, and the user can select which one they want to use for the snippets. When we add cucumber expression support it's likely we'll still let users select the old syntax(es).

For this reason it'd be useful to have the full original step text in the command.

In the context of the general model, the language-specific program is going to need a cucumber expression parser (unless I've misunderstood) to do the step definition matching, therefore there's a possible source of errors where the runner generates an expression that the program can't then parse.

IMO it would be much cleaner to have all responsibility for expressions in the program and not build that knowledge into the runner.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions