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

Add better description handler for cucumber features #754

Merged
merged 2 commits into from
Aug 25, 2023

Conversation

epszaw
Copy link
Member

@epszaw epszaw commented Aug 18, 2023

Context

fixes #740

Checklist

@epszaw epszaw added type:bug Something isn't working theme:cucumberjs CucumberJS related issue labels Aug 18, 2023
@epszaw epszaw changed the title add better description handler for cucumber feature files Add better description handler for cucumber features Aug 18, 2023
@epszaw epszaw marked this pull request as ready for review August 18, 2023 11:19
@epszaw epszaw requested a review from baev August 18, 2023 11:19
// sometimes description starts with "Description:", but it's not actually required
const description = scenario?.description
? scenario.description.replace(/\s+Description:\s?/, "")
: doc?.feature?.description;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe always join the feature description with the scenario description?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I afraid it'll produce strange descriptions with a lot of duplicated data. Guess, we should entirely replace feature description by a local one

@epszaw epszaw force-pushed the issue-740-fix-cucumber-description-keyword-handling branch from 2c2db42 to a81126e Compare August 18, 2023 15:04
@epszaw epszaw requested a review from baev August 18, 2023 15:05
@baev baev merged commit a3ef497 into master Aug 25, 2023
5 checks passed
@baev baev deleted the issue-740-fix-cucumber-description-keyword-handling branch August 25, 2023 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:cucumberjs CucumberJS related issue type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Allure & Cucumber-JS] There is no description in the Allure Report
2 participants