bigcommerce / catalyst

Catalyst - for Composable Commerce
https://catalyst-demo.site
MIT License
90 stars 59 forks source link

feat(functional): Add code coverage skeleton #1084

Closed avattipalli closed 1 month ago

avattipalli commented 1 month ago

What/Why?

Add the option to generate code coverage in dev environment. We can generate the code coverage on the CI too but it currently requires to update the build process and make some updates based on the file map. I'll be following up with another change to handle this as part of CI.

With this change, we would also be using monocart-reporter as the test report. It is a better reporter than what we currently have setup.

Testing

Tested locally.

Code Coverage Report

Screenshot 2024-07-10 at 6 45 16 PM


Test run report

Screenshot 2024-07-18 at 9 41 16 AM
changeset-bot[bot] commented 1 month ago

⚠️ No Changeset found

Latest commit: b4d7eae43fc32641a3971761369bae33d17adca0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

vercel[bot] commented 1 month ago

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

Name Status Preview Comments Updated (UTC)
catalyst 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jul 24, 2024 4:51pm
catalyst-latest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 24, 2024 4:51pm
5 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **catalyst-1millionproducts-store** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-1millionproducts-store/H2egxeUmsmphPL3tJLwAdVxm1Zd7)) | [Visit Preview](https://catalyst-1millionproducts-store-git-7850c5-bigcommerce-platform.vercel.app) | | Jul 24, 2024 4:51pm | | **catalyst-au** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-au/3U5MXmT4bE5SgJSuFMS9CYEJAoVL)) | [Visit Preview](https://catalyst-au-git-codecov1-bigcommerce-platform.vercel.app) | | Jul 24, 2024 4:51pm | | **catalyst-test-store** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-test-store/5DGyK7LS6HWFFeRiWAC4Wj1jjcP1)) | [Visit Preview](https://catalyst-test-store-git-codecov1-bigcommerce-platform.vercel.app) | | Jul 24, 2024 4:51pm | | **catalyst-uk** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-uk/2Hcpg81yiQeXirkpDWPqREucoPMY)) | [Visit Preview](https://catalyst-uk-git-codecov1-bigcommerce-platform.vercel.app) | | Jul 24, 2024 4:51pm | | **catalyst-unstable** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-unstable/DytUnN7YVhL3va8rruP6Nj9TyHK9)) | [Visit Preview](https://catalyst-unstable-git-codecov1-bigcommerce-platform.vercel.app) | | Jul 24, 2024 4:51pm |
github-actions[bot] commented 1 month ago

⚡️🏠 Lighthouse report

Lighthouse ran against https://catalyst-latest-qdtigvmz9-bigcommerce-platform.vercel.app

🖥️ Desktop

We ran Lighthouse against the changes on a desktop and produced this report. Here's the summary:

Category Score
🟢 Performance 91
🟢 Accessibility 100
🟢 Best practices 96
🟠 SEO 82

📱 Mobile

We ran Lighthouse against the changes on a mobile and produced this report. Here's the summary:

Category Score
🟠 Performance 86
🟢 Accessibility 100
🟢 Best practices 96
🟠 SEO 85