cypress-cucumber-preprocessor icon indicating copy to clipboard operation
cypress-cucumber-preprocessor copied to clipboard

HTML report shows as Unknown for a scenario using @skip tag

Open ijaved opened this issue 2 years ago • 3 comments

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. image

Command line also shows the scenario as Pending but should be Skipped image

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

ijaved avatar Jun 19 '23 18:06 ijaved

Command line also shows the scenario as Pending but should be Skipped

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.

badeball avatar Jun 19 '23 19:06 badeball

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.

badeball avatar Jun 20 '23 20:06 badeball

This can be tracked here.

badeball avatar Jul 09 '23 14:07 badeball

I found away around the above-mentioned proposal and I've fixed this issue with v20.1.0.

badeball avatar Jun 24 '24 04:06 badeball