Skip to content

Add Codecov setup with c8 coverage on unit tests#70

Merged
JideEngDev merged 5 commits intomasterfrom
setup/codecov
Mar 27, 2026
Merged

Add Codecov setup with c8 coverage on unit tests#70
JideEngDev merged 5 commits intomasterfrom
setup/codecov

Conversation

@JideEngDev
Copy link
Copy Markdown
Contributor

Summary

  • Adds c8 dev dependency — V8-native coverage tool that works seamlessly with ts-node
  • Adds test:CI script: runs unit tests only (test/unit/*Spec.ts) with --reporter=json --reporter=lcov to generate coverage/lcov.info
  • Adds codecov/codecov@5.0.3 orb to CircleCI config
  • Adds a test job (runs before build) with codecov/upload uploading coverage/lcov.info
  • Adds .codecov.yml with 80% patch coverage target and PR comments

Why unit tests only?

Integration tests (test/integration/) require live Trolley API credentials. Unit tests in test/unit/ run standalone with mocks and are safe to run in CI without secrets.

Test plan

  • CircleCI test job runs npm run test:CI and passes
  • coverage/lcov.info is generated
  • Codecov receives the report and comments on this PR

Made with Cursor

@JideEngDev JideEngDev requested a review from a team as a code owner March 27, 2026 04:30
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@JideEngDev JideEngDev merged commit 1ba0d50 into master Mar 27, 2026
4 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.

2 participants