Giter Site home page Giter Site logo

Comments (1)

bruno-morel avatar bruno-morel commented on July 3, 2024

Ah. Interesting. I have the same frustration than you...:)

This unfortunately is a jest-cucumber error that is raised and that your runner is displaying...

The trick is, jest-cucumber-fusion register the Scenario outline as a parameterized title within jest-cucumber to avoid jest detecting the same title more than once "Error: More than one scenario found in step definitions matching scenario title """ which is breaking...
This mechanism is powerful in the sense where it allows jest-cucumber to use the regexp version of the different steps instead of having to run each regexp against each scenario...

I did try to force jest-cucumber to use the "expanded" outlines (with the variable replaced by real values) by iterating through all the scenario manually one by one.
Unfortunatly, jest-cucumber end up trying to protect us from that with no matching "Feature" (aka same title in the gherkin file). The error would be at that point "No scenarios found in feature file that match scenario title ".

So if we want this to be possible (and I agree it would be better...), we'll have to convince the author of jest-cucumber to change his error handling ....https://github.com/bencompton/jest-cucumber
Especially, I do believe that the https://github.com/bencompton/jest-cucumber/blob/master/src/validation/scenario-validation.ts can be allowed to be a bit flexible, or a failing scenario to raise it's expanded name and not the generic one...

I'll support and help explain if you feel it's worth going for...

from jest-cucumber-fusion.

Related Issues (17)

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.