Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error if comment is placed after tag #95

Open
Hsilgos opened this issue Jul 18, 2023 · 1 comment
Open

Error if comment is placed after tag #95

Hsilgos opened this issue Jul 18, 2023 · 1 comment

Comments

@Hsilgos
Copy link
Contributor

Hsilgos commented Jul 18, 2023

Following error produced:

Sources/CucumberSwift/Runner/CucumberTest.swift:102: error: -[CucumberSwift.CucumberTest testGherkin]
failed - File: file:///.../test.feature unexpected end of file, expected: #TagLine, #ScenarioLine, #Comment, #44

If there is a comment after tag:

Feature: Test functionality
  @Disable # TODO: comment
  Scenario: Test scenario
    Given Do smth

Expected: no error

@jan-kala
Copy link

Hey @Hsilgos!
I don't think that's a valid syntax as per Gherkin's reference

Comments are only permitted at the start of a new line, anywhere in the feature file. They begin with zero or more spaces, followed by a hash sign (#) and some text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants