cypress-cucumber-preprocessor
cypress-cucumber-preprocessor copied to clipboard
HTML report shows as Unknown for a scenario using @skip tag
Current behavior
As per Smart tagging in: https://github.com/badeball/cypress-cucumber-preprocessor/blob/master/docs/tags.md
Scenario with @skip shows as as Unknown in HTML report.
Command line also shows the scenario as Pending but should be Skipped
Desired behavior
Scenarios with @skip tag should show as Skipped in the HTML report and on command line when tests have run
Test code to reproduce
Run Skipped report as detailed in: https://github.com/ijaved/cypress-cucumber-preprocessor-reporting-example/blob/main/README.md
Versions
- Cypress version: 12.14.0:
- Preprocessor version: 18.0.1:
- Node version: 16.16.0:
Checklist
- [ ] I've read the FAQ.
- [ ] I've read instructions for logging issues.
- [ ] I'm not using
[email protected](package name has changed and it is no longer the most recent version, see #689).
Command line also shows the scenario as
Pendingbut should beSkipped
No, this is part of Cypress nomenclature outside of my control, EG. discussed here.
As far as the HTML report go - you're right, skipping isn't handled gracefully in terms of reporting. This includes returning "skipped" from hooks & steps, as well as any tag filtering in general.
For future reference, skipping steps in cucumber-js is partially described here and then there's some undescribed functionality.
This will likely depend on the existence of a test:after:run event, as described here. The referenced MR never made it into mainline it seems, despite the completion status.
I've tried to inquiry about its status, but given my history with Cypress so far, I assume it's never going to happen.
This can be tracked here.
I found away around the above-mentioned proposal and I've fixed this issue with v20.1.0.