Skip to content

Conversation

@karoisuzvards
Copy link
Contributor

Hello ! :)

Cucumber allows to skip scenario using skip_this_scenario method : https://www.rubydoc.info/gems/cucumber/Cucumber/Glue/ProtoWorld#skip_this_scenario-instance_method

This method also accepts optional string argument to specify more info about why this particular scenario is skipped.

Currently Allure report does not show this reason, but it would be great if it could. (particularly great if test scenario skipping logic becomes complex over time)

I hacked around a bit and managed to make it work using monkeypatch. I would like to include these changes also to upstream.

TODO:

  • handle failure details for skipped scenario same way as for failed
  • add test for skipped scenario

@CLAassistant
Copy link

CLAassistant commented Feb 19, 2025

CLA assistant check
All committers have signed the CLA.

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit a66084d and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (80% is the threshold).

This pull request will bring the total coverage in the repository to 98.9% (0.0% change).

View more on Code Climate.

@andrcuns andrcuns added the enhancement Improvement or request label Mar 10, 2025
@andrcuns
Copy link
Collaborator

LGTM 👍

@andrcuns andrcuns merged commit 2981ca2 into allure-framework:master Mar 10, 2025
12 of 13 checks passed
@andrcuns andrcuns added feature New feature or request and removed enhancement Improvement or request labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants