Skip to content

test(design-system): Setup test code coverage reporting [AR-46652]#129

Open
iromanchuk-dn wants to merge 1 commit intodrivenets:mainfrom
iromanchuk-dn:AR-46652-setup-test-code-coverage-reporting
Open

test(design-system): Setup test code coverage reporting [AR-46652]#129
iromanchuk-dn wants to merge 1 commit intodrivenets:mainfrom
iromanchuk-dn:AR-46652-setup-test-code-coverage-reporting

Conversation

@iromanchuk-dn
Copy link
Collaborator

Description

Coverage is included in the Vitest addon. The only missing part was this package @vitest/coverage-v8.
We can run tests and get coverage report via this UI:
image

See Storybook docs for more details.

Coverage report

image

Copy link
Collaborator

Choose a reason for hiding this comment

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

do we want to set some minimum coverage thresholds?
and also enforce that in the ci

Copy link
Collaborator

Choose a reason for hiding this comment

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

Inbal said she just wants some reports for now. She does not want to block us with thresholds (we have another ticket to increase the coverage on old components, once done we will add it 💯 ).

But, I would add a CLI method which we could run locally, so I can verify my coverage on my new code 🤔 That would be lovely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants