jhorstmann / zuchini

A reimplementation of gherkin and cucumber for java based on antlr4 and junit
11 stars 3 forks source link

Background description is mandatory #40

Open jmatusewicz opened 6 years ago

jmatusewicz commented 6 years ago

Defining a background block without a description leads to:

    org.antlr.v4.runtime.misc.ParseCancellationException: line 3:13 no viable alternative at input '\n'
        Caused by:
        org.antlr.v4.runtime.NoViableAltException

In regular cucumber this is supported: https://github.com/cucumber/cucumber/wiki/Background

At least a more detailed exception would help to pinpoint the error.