Giter Site home page Giter Site logo

Integrate Gherkin3 Parser... about augurk HOT 2 CLOSED

augurk avatar augurk commented on May 28, 2024
Integrate Gherkin3 Parser...

from augurk.

Comments (2)

jmezach avatar jmezach commented on May 28, 2024

I've started work on this. From what I can tell so far it doesn't seem that big of a change and it would remove dependency on SpecFlow altogether. That should make #40 easier to do as well.

from augurk.

jmezach avatar jmezach commented on May 28, 2024

I've finished the basics of moving over to the Gherkin3 parser, but I noticed that if a feature file has a #language comment at the top with a two part notation (ie. en-US or nl-NL) it throws an exception. Seems like only single part notation (ie. en or nl) is supported by the Gherkin parser.

Figuring that SpecFlow works just fine with the two part notation I had a look at how they implemented this. Looks like they try the two part first, and if that fails the strip the second part and try again: https://github.com/techtalk/SpecFlow/blob/master/TechTalk.SpecFlow.Parser/SpecFlowGherkinParser.cs#L15-L39

We could implement it the same way but we'll also have to figure out what to do with the --language option that the command line currently supports. Perhaps we should implement a GherkinDialectProvider that uses the command line option if supplied?

from augurk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.