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 to parse certain Gherkin multiline strings that start with an asterisk #14

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

Comments

@christianhujer
Copy link

The dart_gherkin parser fails to parse certain multiline strings.

The following scenario works (using x):

Feature: Conway's Game of Life

  Scenario: Single cell universe
    Given the following universe:
    """
    x
    """

The following scenario fails (using *):

Feature: Conway's Game of Life

  Scenario: Single cell 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 109:15                          GherkinParser._parseBlock
package:gherkin/src/gherkin/parser.dart 109:15                          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'
@christianhujer christianhujer changed the title Parser fails to parse certain Gherkin multiline strings Parser fails to parse certain Gherkin multiline strings that start with an asterisk Aug 4, 2020
@jonsamwell
Copy link
Owner

@christianhujer thanks for reporting these, much appreciated!

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