Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show skipped test reason in report #581

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

karoisuzvards
Copy link

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.

Signed-off-by: Karois <karlissergijevskis@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants