Andrey Regentov
Andrey Regentov

Reputation: 3737

gherkin.parser.ParseError in a good-looking file

Gherkin fails with gherkin.parser.ParseError: Parse error at some.feature:5. Found comment when expecting one of: examples, feature, scenario, scenario_outline, tag. (Current getState: tag) with a some.feature that begins with

# language: ru

@atag
@anothertag
#@done

Функционал: Некая фича

Upvotes: 0

Views: 2729

Answers (1)

Andrey Regentov
Andrey Regentov

Reputation: 3737

It could not survive a comment inside tag section. Removing #@done did the job.

So one does not simply add comments into gherkin feature file, and the location of comment have meaning.

Upvotes: 1

Related Questions