Closed aslakhellesoy closed 2 years ago
Add quick fix to generate snippets for undefined step definitions.
TODO:
pom.xml
package.json
Gemfile
step_definitions.${ext}
moduleWords
['foo', 'bar']
package foo.bar;
src/test/java
Write step definitions quicker, without having to run Cucumber to see snippets. Also to have snippets added to code automatically.
See related PR: https://github.com/cucumber/language-service/pull/46
This text was originally generated from a template, then edited by hand. You can modify the template here.
🤔 What's changed?
Add quick fix to generate snippets for undefined step definitions.
TODO:
pom.xml
,package.json
,Gemfile
etc)step_definitions.${ext}
- the template context will have one extra property:moduleWords
- e.g.['foo', 'bar']
, which the template can use to add e.g.package foo.bar;
at the topmoduleWords
we need to strip away any path prefixes (such assrc/test/java
before makingmoduleWords
)⚡️ What's your motivation?
Write step definitions quicker, without having to run Cucumber to see snippets. Also to have snippets added to code automatically.
🏷️ What kind of change is this?
♻️ Anything particular you want feedback on?
See related PR: https://github.com/cucumber/language-service/pull/46
📋 Checklist:
This text was originally generated from a template, then edited by hand. You can modify the template here.