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

test: added end-to-end-style unit test #205

Merged
merged 2 commits into from
Jan 6, 2024
Merged

Conversation

JoshuaKGoldberg
Copy link
Owner

@JoshuaKGoldberg JoshuaKGoldberg commented Jan 6, 2024

PR Checklist

Overview

Adds a "unit" test that acts more as an end-to-end test. It mocks out the GitHub API and calls to the root-exported getAllContributorsForRepository.

Raises line coverage to near-100%, though it does miss a few bits of branch coverage. I don't feel motivated to really dive in and get true 100% branch/conditional/etc. coverage myself. That's fine as followup good first issues if anybody wants to ramp up on contributing.

Copy link

codecov bot commented Jan 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (47465c3) 75.19% compared to head (6622e8f) 99.80%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #205       +/-   ##
===========================================
+ Coverage   75.19%   99.80%   +24.60%     
===========================================
  Files          17       17               
  Lines         512      512               
  Branches       24       29        +5     
===========================================
+ Hits          385      511      +126     
+ Misses        127        1      -126     

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

@JoshuaKGoldberg JoshuaKGoldberg merged commit 6d731ee into main Jan 6, 2024
16 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the end-to-end-test branch January 6, 2024 15:22
@JoshuaKGoldberg
Copy link
Owner Author

@all-contributors please add @JoshuaKGoldberg for test.

🤖 Beep boop! This comment was added automatically by all-contributors-auto-action.
Not all contributions can be detected from Git & GitHub alone. Please comment any missing contribution types this bot missed.
...and of course, thank you for contributing! 💙

Copy link
Contributor

@JoshuaKGoldberg

I've put up a pull request to add @JoshuaKGoldberg! 🎉

I couldn't determine any contributions to add, did you specify any contributions?
Please make sure to use valid contribution names.

JoshuaKGoldberg pushed a commit that referenced this pull request Jan 6, 2024
Adds @JoshuaKGoldberg as a contributor for test.

This was requested by JoshuaKGoldberg [in this
comment](#205 (comment))

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
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.

🛠 Tooling: Raise test coverage to "green" percentage
1 participant