storybookjs / test-runner

🚕 Turn stories into executable tests

Home Page:https://storybook.js.org/docs/writing-tests/interaction-testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature request]: Run coverage report for interaction tests only

mrafei opened this issue · comments

Is your feature request related to a problem? Please describe.

I want to have the true coverage for the lines of code that are covered by interaction tests and not stories that only render the components.

So in a sense the problem is numbers for addon-coverage are bloated and not correct.

Describe the solution you'd like

Have the test-runner only run interaction tests, and ideally only count coverage for lines covered by these tests.

Describe alternatives you've considered

Replacing interaction tests with regular react-testing-library tests. Then producing the coverage report for that.

Are you able to assist to bring the feature to reality?

no

Additional context

No response