Skip to content

Conversation

jescalada
Copy link
Contributor

@jescalada jescalada commented Aug 10, 2025

Implements the coverage checks mentioned in #1019, although it doesn't add any auto-merge on coverage attained (we still want maintainers to take a look at larger PRs and decide the right time to merge).

I've also added some documentation on how to implement unit, E2E and fuzz tests for new PRs.

Copy link

netlify bot commented Aug 10, 2025

Deploy Preview for endearing-brigadeiros-63f9d0 canceled.

Name Link
🔨 Latest commit 8d2c69b
🔍 Latest deploy log https://app.netlify.com/projects/endearing-brigadeiros-63f9d0/deploys/68b2922c4728880008847c98

Copy link

codecov bot commented Aug 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.12%. Comparing base (2950617) to head (8d2c69b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1147      +/-   ##
==========================================
+ Coverage   82.76%   83.12%   +0.35%     
==========================================
  Files          66       66              
  Lines        2780     2780              
  Branches      332      332              
==========================================
+ Hits         2301     2311      +10     
+ Misses        431      423       -8     
+ Partials       48       46       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jescalada jescalada marked this pull request as ready for review August 12, 2025 13:13
@jescalada jescalada linked an issue Aug 13, 2025 that may be closed by this pull request
4 tasks
@jescalada jescalada changed the title chore: add coverage check to nyc script chore: add testing documentation and coverage checks Aug 13, 2025
Copy link
Contributor

@dcoric dcoric left a comment

Choose a reason for hiding this comment

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

Very good in general, I just added a small nitpick.

Copy link
Contributor

@kriswest kriswest left a comment

Choose a reason for hiding this comment

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

Lots of good stuff here! I'd like to see resetting stubs emphasized as I lost a couple of hours to debugging confusing issues caused by stubs that were not reset.

Co-authored-by: Kris West <[email protected]>
Signed-off-by: Juan Escalada <[email protected]>
@jescalada jescalada requested a review from kriswest August 22, 2025 03:13
@kriswest
Copy link
Contributor

Might be worth updating the template test and including sinon/proxyquire examples in it: https://github.com/finos/git-proxy/blob/main/test/1.test.js

@jescalada
Copy link
Contributor Author

@kriswest Should be ready for a final look!

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.

Define and publicise our standards for testing and CI gating
3 participants