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

Fix #149: Configured code coverage #162

Merged
merged 7 commits into from
Jan 16, 2025

Conversation

tarunsinghofficial
Copy link
Collaborator

Fixes #149

Changes Made:

  • Configured Vitest for code coverage in existing vite.config.js
  • Added a new script npm run test:coverage to generate test coverage reports locally.
  • Added coverage/ folder to .gitignore to prevent committing generated reports.

Screenshot of Coverage folder:
image

After running the test suite using npm run test:coverage, we can generate the coverage report in the coverage folder.

Copy link
Member

@aaronbrethorst aaronbrethorst left a comment

Choose a reason for hiding this comment

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

thanks for tackling this! It looks like the test.coverage.exclude array needs to be expanded a bit. In the coverage I see wayfinder/build, wayfinder/.svelte-kit and wayfinder/node_modules, all of which should be excluded.

@tarunsinghofficial
Copy link
Collaborator Author

thanks for tackling this! It looks like the test.coverage.exclude array needs to be expanded a bit. In the coverage I see wayfinder/build, wayfinder/.svelte-kit and wayfinder/node_modules, all of which should be excluded.

Sure, will exclude all of these.

Copy link
Member

@aaronbrethorst aaronbrethorst left a comment

Choose a reason for hiding this comment

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

Thanks, Tarun!

@aaronbrethorst aaronbrethorst merged commit 3dbbb38 into OneBusAway:main Jan 16, 2025
3 checks passed
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.

Configure Code Coverage
2 participants