Skip to content

Proposed snippets use translated method names #3

@naholyr

Description

@naholyr

Example FR feature:

# language: fr
Fonctionnalité: Compte en banque

  Scénario: Ajout d'argent
        Etant donné que j'ai un compte en banque avec 0 €
        Lorsque j'ajoute 35 € sur mon compte en banque
        Alors j'ai 35 € sur mon compte en banque

Output:

You can implement step definitions for undefined steps with these snippets:

$steps->Alors('/^j\'ai (\d+) € sur mon compte en banque$/', function($world, $arg1) {
    throw new \Behat\Behat\Exception\Pending();
});

If you copy-paste that, it's of course a fatal error (undefined method "Alors"). So bad for such a nice feature ;)

I think the issue doesn't come from parser, as the test is properly executed when I copy-paste and replace "Alors" with "Then". Not identified exactly where it occurs yet, I'll pull request if I find it first.

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