0

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

Функционал: Некая фича
Andrey Regentov
  • 3,687
  • 4
  • 34
  • 40

1 Answers1

1

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.

Andrey Regentov
  • 3,687
  • 4
  • 34
  • 40
  • If you dont want to run a tag, you can use the "~@done" in your cucumber options, so no need to comment that out – Dude Apr 14 '15 at 14:15
  • @Dude thanks for the knowledge, but it's not the case. I do want all features with "@done" tag to run, and want to temporarily turn one feature off (by commenting the tag). – Andrey Regentov Apr 20 '15 at 05:26