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.

Support Cucumber Html Reporter

See original GitHub issue

I think it would be awesome to add support for cucumber html reporter. As it currently works, it’s not able to take the report generated by mochaweseome and even then, tests ran in cucumber are are output as if (backgroundSection) { backgroundSection.steps.forEach(step => stepTest.call(this, step)); } scenario.steps.forEach(step => stepTest.call(this, step));

Maybe I’m missing something but the error I recieved when trying to generate a cucumber-html-report was

TypeError: suite.features.forEach is not a function

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:22 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
dane-harnettcommented, Jul 28, 2021
2reactions
jcundillcommented, Jul 6, 2019

Screenshots can be generated a couple of ways

  1. using cy.screenshot - I haven’t added support for this to my fork, should be doable fairly easily by getting the onAfterScreenshot to feed the image data to the cucumber JSON data collector object.

  2. automated screen shots (and videos) of failed tests directly from cypress.

This second option is what we wanted to try and include in our reports, and we especially wanted to embed the videos. Unfortunately the video generation is kicked off after the test has finished, and after the mocha reporter hook has also finished.

So we ended up writing a simple script that can be added to our jenkins build pipeline that augments the cucumber.json files with these images and videos after all the features have been run.

https://github.com/jcundill/cypress-cucumber-preprocessor/blob/master/fixJson.js

This may be helpful for you.

I’ll try and take a look at supporting cy.screenshot() it would be a good addition

Read more comments on GitHub >

github_iconTop Results From Across the Web

cucumber-html-reporter - npm
Generates Cucumber HTML reports in three different themes. Latest version: 5.5.0, last published: a year ago.
Read more >
Generates Cucumber HTML reports in three different themes
Generates Cucumber HTML reports in three different themes - GitHub - gkushang/cucumber-html-reporter: Generates Cucumber HTML reports in three different ...
Read more >
Top 5 cucumber-html-reporter Code Examples - Snyk
To help you get started, we've selected a few cucumber-html-reporter examples, based on popular ways it is used in public projects. Secure your...
Read more >
Generate Cucumber .html report in Cypress | Medium
We need a .html report where we can see the results of the cucumber cypress test case in graphical form (pie chat etc.)...
Read more >
Reporting - Cucumber Documentation
Cucumber uses reporter plugins to produce reports that contain information ... in-depth HTML reports, Screenplay Pattern APIs, and support for every single ...
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