-
Notifications
You must be signed in to change notification settings - Fork 407
Test coverage for GitShellOutStrategy #1900
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1900 +/- ##
==========================================
+ Coverage 91.09% 91.64% +0.54%
==========================================
Files 185 185
Lines 10719 10672 -47
Branches 1575 1563 -12
==========================================
+ Hits 9765 9780 +15
+ Misses 954 892 -62
Continue to review full report at Codecov.
|
cf6aeab to
4860e97
Compare
|
And 100% coverage for |
annthurium
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woo!
| * ([^\\\\/]*)[\\\\/] captures non-slash characters before first slash | ||
| */ | ||
| const EXPAND_TILDE_REGEX = new RegExp('^~([^/]*)/'); | ||
| const EXPAND_TILDE_REGEX = new RegExp('^~([^\\\\/]*)[\\\\/]'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's so much more...expandy! (I really wanted to come up with a better joke about this but couldn't.)
| mergeTrailers(commitMessage, trailers, unfold) { | ||
| mergeTrailers(commitMessage, trailers) { | ||
| const args = ['interpret-trailers']; | ||
| if (unfold) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch on this unused param
| it('propagates unexpected git errors', async function() { | ||
| const workingDirPath = await cloneRepository('three-files'); | ||
| const git = createTestStrategy(workingDirPath); | ||
| sinon.stub(git, 'exec').rejects(new Error('AHHHH')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a+ fake error names in this pull request
Please be sure to read the contributor's guide to the GitHub package before submitting any pull requests.
Requirements
Description of the Change
This adds unit tests to
git-strategies.test.jsto cover the remaining uncovered lines reported by CodeCov.Alternate Designs
N/A
Benefits
GitShellOutStrategy is one of the more prevalent culprits in test coverage flapping that we see on unrelated PRs. This is one step toward minimizing those changes and keeping CodeCov output relavent.
Possible Drawbacks
N/A
Applicable Issues
N/A
Metrics
N/A
Tests
Ideally this should raise GitShellOutStrategy's coverage to 100%.
Documentation
N/A
Release Notes
N/A
User Experience Research (Optional)
N/A