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.

StepDefinitionReporter fails to report Java8 Lambda StepDefinitions

See original GitHub issue

Ok so I feel silly asking about this here, but I can’t workout why the StepDefinitionReporter isn’t triggered anymore when I follow the steps to implement my plugin here: https://blog.jdriven.com/2019/01/cucumber-jvm-plugin/

This is in a new project, using recent (4.2.0, 4.2.6, 4.3.1) versions of cucumber-jvm. Somehow the @Override public void stepDefinition(StepDefinition stepDefinition) {} isn’t triggered, and I can’t find out why. @mpkorstanje we’ve both seen this work before, any idea why?

The only noticeable difference between this new project and my previous attempts, is that this project uses the cucumber.api.java8.Nl together with #language: nl.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
mpkorstanjecommented, May 21, 2019

I am going to call it a day. I’ll have a look tomorrow.

1reaction
mpkorstanjecommented, May 21, 2019

Let’s consider that separately. I think the current json structure would give us problems in the future. I’d have to consider it more carefully.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cucumber, Java8: find usage of step defined by lambda ...
java was created by the Cucumber plugin by pressing ALT+ENTER while selecting a step in the feature file. The feature file was shown...
Read more >
How to Generate Cucumber Reports in Framework - Tools QA
Steps to generate Junit XML Report in Cucumber. ... As we know that Cucumber is a BDD framework, it does not have a...
Read more >
[Cucumber-Java8] How to reuse step defs? - Google Groups
I'm using cucumber-java8 to create my step definitions (using lambda expressions ... to specify a list of step definition classes) , I got...
Read more >
Step by Step Implementation Cucumber BDD Framework ...
Step 2: Create Feature file and write feature. ... Now go to stepDefinitions package >loginSteps.java class and implement all the test steps ......
Read more >
Part 11 - New feature in Cucumber-Java 8 - YouTube
In this video we will discuss about the new feature of Cucumber- Java 8 and how we can leverage the power of Lambda...
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