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 code coverage test #497

Merged
merged 2 commits into from
Jul 23, 2022
Merged

add code coverage test #497

merged 2 commits into from
Jul 23, 2022

Conversation

jaasonw
Copy link
Contributor

@jaasonw jaasonw commented Jul 8, 2022

Code coverage is a measure of how much of the code is being tested
See: https://www.atlassian.com/continuous-delivery/software-testing/code-coverage

This PR adds the command npm run test:coverage to generate a code coverage report after running all unit tests. It achieves this using c8 as per the vitest docs
https://vitest.dev/guide/coverage.html

Currently our code coverage looks like this
image
And we should definitely look to improve this metric going forward

@vercel
Copy link

vercel bot commented Jul 8, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
acm-csuf-site ✅ Ready (Inspect) Visit Preview Jul 20, 2022 at 9:38AM (UTC)

@vercel vercel bot temporarily deployed to Preview July 8, 2022 16:16 Inactive
@vercel vercel bot temporarily deployed to Preview July 20, 2022 09:38 Inactive
@jaasonw jaasonw enabled auto-merge (squash) July 23, 2022 23:37
Copy link
Collaborator

@janiljohn janiljohn left a comment

Choose a reason for hiding this comment

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

looks poggers

@jaasonw jaasonw merged commit 74a2c0b into main Jul 23, 2022
@jaasonw jaasonw deleted the code-coverage branch August 12, 2022 08:42
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

Successfully merging this pull request may close these issues.

None yet

2 participants