Support Cucumber Html Reporter
See original GitHub issueI 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:
- Created 4 years ago
- Reactions:8
- Comments:22 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I created this if it is of any help: https://github.com/dane-harnett/cypress-cucumber-attach-screenshots-to-failed-steps
Screenshots can be generated a couple of ways
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.
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