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

Move Background steps next to each Scenario in the Cucumber report #2522

Closed
diazgn opened this issue Mar 20, 2025 · 3 comments
Closed

Move Background steps next to each Scenario in the Cucumber report #2522

diazgn opened this issue Mar 20, 2025 · 3 comments

Comments

@diazgn
Copy link

diazgn commented Mar 20, 2025

🤔 What's the problem you're trying to solve?

In a Feature file containing multiple Scenarios and a Background, when the Background steps include logs, the report displays all these steps under the Background section. This behaviour makes it challenging to distinguish which steps correspond to each individual Scenario.

This is an example with 7 scenarios, but it gets more complicated when the feature file has more scenarios.

Image

✨ What's your proposed solution?

It would be nice to move the Background steps in the Cucumber report next to the executed Scenario to be able to identify them easily.

⛏ Have you considered any alternatives or workarounds?

No response

📚 Any additional context?

$ npx cucumber-js -v 11.2.0

@vitalets
Copy link

+1, I also notice this problem.
Possibly related to: cucumber/html-formatter#283

@diazgn
Copy link
Author

diazgn commented Mar 20, 2025

I was aware of that topic, but as it has been stuck there for some time that's why I decided to open this enhancement in case this could be changed before that big refactor

@davidjgoss
Copy link
Contributor

Whilst the thread on cucumber/html-formatter#283 has been a little quiet, it is actively being worked on and should be in users hands in the next few weeks. So, closing this.

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

No branches or pull requests

3 participants