cucumber / cucumber-js

Cucumber for JavaScript
https://cucumber.io
MIT License
5.04k stars 1.09k forks source link

Snipper builder: Access to the feature file name and missing step definition line #2276

Open olivierodo opened 1 year ago

olivierodo commented 1 year ago

🤔 What's the problem you're trying to solve?

Currently i'm using the snippet builder as an alert to make my user understand that they might have a misspell on their step definition. The snippet would look like:

😵 Oooppps! The steps in the file locals/get.feature line 10 does not exist:

As you can see i try to access to the file and line concerned, however from my research i couldn't find a way to access to these 2 information from the custom snippet syntax class

✨ What's your proposed solution?

Extends the options of the IBuildRequest

⛏ Have you considered any alternatives or workarounds?

I think so...

📚 Any additional context?


This text was originally generated from a template, then edited by hand. You can modify the template here.