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

Parser fails on comment strings that start with > #15

Closed
christianhujer opened this issue Aug 4, 2020 · 1 comment
Closed

Parser fails on comment strings that start with > #15

christianhujer opened this issue Aug 4, 2020 · 1 comment

Comments

@christianhujer
Copy link

The dart_gherkin parser fails to parse certain comment strings.

The following scenario works:

Feature: Conway's Game of Life

  Rules of Conway's Game of Life
  The universe of the _Game of Life_ is an infinite, two-dimensional orthogonal grid of square cells.

  Scenario: Empty universe
    Given the following universe:
    """
    """

The following scenario fails:

Feature: Conway's Game of Life

  Rules of Conway's Game of Life
  > The universe of the _Game of Life_ is an infinite, two-dimensional orthogonal grid of square cells.

  Scenario: Empty universe
    Given the following universe:
    """
    """

Stacktrace:

Error while parsing feature file: './features/GameOfLife.feature'
Instance of 'GherkinSyntaxException'
package:gherkin/src/gherkin/parser.dart 122:9                           GherkinParser._parseBlock
package:gherkin/src/gherkin/parser.dart 109:15                          GherkinParser._parseBlock
package:gherkin/src/gherkin/parser.dart 55:7                            GherkinParser.parseFeatureFile
===== asynchronous gap ===========================
package:gherkin/src/test_runner.dart 47:43                              GherkinRunner.execute
===== asynchronous gap ===========================
test/acceptance_test.dart 11:26                                         main
===== asynchronous gap ===========================
package:test_api                                                        RemoteListener.start
package:test_core/src/runner/plugin/remote_platform_helpers.dart 35:20  serializeSuite
data:... 11:21                                                          main

Failed to load "/home/christian.hujer/git/nelkinda/gameoflife-dart/test/acceptance_test.dart": Instance of 'GherkinSyntaxException'
@jonsamwell
Copy link
Owner

Fixed in v1.1.8+3

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