question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`and` not supported in step_definitions

See original GitHub issue

Whilst we have given, when and then globally

…we do not have a global and. (Looks like step definition support was missed off in #31 / #35).

I would expect to be able to write and('foo happens') as I am allowed to write And foo happens in the feature file.

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lgandeckicommented, Jul 13, 2019

I believe this was done in the #153 , not sure why it didn’t close automatically

0reactions
lgandeckicommented, Aug 29, 2018

@sessa that’s exactly how we could add that… If you could also add a simple .feature test where you use And step while creating a step definitions that define that’s as And(``, () => {}) that would be great!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cucumber .feature file is not getting linked to stepDefinition ...
I had same problem that CTRL+Click was not working in feature files when I installed Natural plugin in Eclipse IDE.
Read more >
Step Definitions - Cucumber Documentation
Step definitions aren't linked to a particular feature file or scenario. The file, class or package name of a step definition does not...
Read more >
Native JS module support in step definitions and support code
I have "type": "module" in package.json and the rest of my project is using modules so changing that is not an option. If...
Read more >
[cucumber-jvm] Why are we not allowed to extend classes that ...
CucumberException: You're not allowed to extend classes that define Step Definitions or hooks. What's the rationale behind stopping us from doing that?
Read more >
Step Definitions - SpecFlow's documentation
This means that it is not necessary to define a new step definition for each ... with multiple attributes in order to support...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found