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.

Not generating JSON reports after each run

See original GitHub issue

I’ve been using the cypress-cucumber-preprocessor v4.3.1 and my implementation was in cypress/plugin/index.ts file like:

const cucumber = require('cypress-cucumber-preprocessor').default

module.exports = (on, config) => {
  on('file:preprocessor', cucumber())
}

and my package.json file was like

"cypress-cucumber-preprocessor": {
    "nonGlobalStepDefinitions": true,
    "cucumberJson": {
      "generate": true,
      "outputFolder": "cypress/cucumber-json",
      "filePrefix": "",
      "fileSuffix": ".cucumber"
    }
  }

which was generating json files that I’m using later in multiple-cucumber-html-reporter to generate a nice report.

After migrating to Cypress 10 and using @badeball/cypress-cucumber-preprocessor v13.0.2 I have no json file generated anymore! I’ve followed the examples here

It is mentioned in the example:

  // This is required for the preprocessor to be able to generate JSON reports after each run, and more,
  await addCucumberPreprocessorPlugin(on, config);

but I’m not getting any, am I missing anything?

Checklist

  • I’ve read the FAQ.
  • I’ve read Instructions for logging issues.
  • I’m not using cypress-cucumber-preprocessor@4.3.1 (package name has changed and it is no longer the most recent version, see #689).

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
clupascu-sudocommented, Oct 21, 2022

Folks, for those of you having an issue due to the cucumber-json-formatter - I managed to use this cucumber preprocessor instead. This doesn’t have any pre-requirements (setup is also more similar to what we had with cypress versions < 10 - not necessarily a good thing)

0reactions
mysticdevxcommented, Nov 2, 2022

Hey, was having the same issue with cypress-cucumber-preprocessor, while the allure-reports plugin here was active, but then this issue resolved my problem and now all is ok.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cucumber reports not generating - Stack Overflow
I updated my RunCucumberFeatureTests class in the question to have "json:target/reports/cucumber.json", but no json file is generated. Is that ...
Read more >
No Report Generated after successful execution. #132 - GitHub
I have been using your cucumber-reports plugin for Jenkins, even after successful completion of the project (Json files is been successfully ...
Read more >
How to Generate Cucumber Reports in Framework - Tools QA
For JSON reports, add json:target/cucumber-reports/Cucumber. json to the @CucumberOptions plugin option. Note : This report contains all the ...
Read more >
Cucumber - Reports - Tutorialspoint
JSON -Java script object notation is another format for generating Cucumber test reports. JSON is an object containing a lot of information stored...
Read more >
Cucumber Reports - Tests Results Overview Report
json "); results.execute();. If similar code snippet is executed somewhere after the Cucumber JSON report is generated and completed the ...
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