Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Cucumber Support #61

Open
ardavis opened this issue Apr 24, 2017 · 0 comments
Open

Cucumber Support #61

ardavis opened this issue Apr 24, 2017 · 0 comments

Comments

@ardavis
Copy link
Contributor

ardavis commented Apr 24, 2017

I am trying to add the ability for jumping to a Cucumber step from the definition, but I have a question. Is it possible to use capture groups in the word: definition of config.js.

Example:

I am here:

Then I go to this awesome step

And I want to jump to:

Then(^I go to this awesome step$) do

I tried setting the word to:

word: /[0-9a-zA-Z_ ]+/

Unfortunately that includes the term "Then", which shouldn't be there. So I attempted to do:

word: /(Given|When|Then|And)\(.*\)/

But no such luck.

Thoughts on proceeding?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant