cucumber / react-components

React components for Cucumber
MIT License
32 stars 10 forks source link

omit documents with no test cases from results #321

Closed davidjgoss closed 1 year ago

davidjgoss commented 1 year ago

🤔 What's changed?

Use the list of statuses with scenarios that actually ran as a base for filtering Gherkin documents.

We sort of half-fixed this in https://github.com/cucumber/react-components/pull/273, but needed to also feed the list of appropriate status to the document filter so that it doesn't show documents when nothing from them ran.

Using the example of a test run where several documents were found but only one scenario ran (e.g. because of a name or tag filter):

Before

image

After

image

⚡️ What's your motivation?

Fixes https://github.com/cucumber/html-formatter/issues/49

🏷️ What kind of change is this?

📋 Checklist:


This text was originally generated from a template, then edited by hand. You can modify the template here.