Uh oh!
There was an error while loading. Please reload this page.
Update GitHubRepositories Tests and Refactor Get-GitHubRepository Function - #233
Update GitHubRepositories Tests and Refactor Get-GitHubRepository Function#233Howard Wolosky (HowardWolosky) merged 10 commits into
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Howard Wolosky (HowardWolosky)
commented
Jun 12, 2020
Thanks for this. Conflicts abound in the tests between this and the work going on for pipelining (which is nearly completed), so I'm going to hold off on this one until early next week if you don't mind.... |
Simon Heather (X-Guardian)
commented
Jun 12, 2020
Yep no problem Howard. I'll leave it in Draft state for now. |
Howard Wolosky (HowardWolosky)
left a comment
There was a problem hiding this comment.
Thanks so much for doing this. Increased code coverage in tests is always good, especially if it catches a dead block of code.
Looks like there are a few minor formatting issues and one bug introduced by this.
Otherwise, there may be some duplicative tests within here (especially around topics, collaborators and contributors) with the advent of the tests added for #242.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Simon Heather (X-Guardian)
commented
Jun 21, 2020
Can we trigger the CI for this PR? |
Howard Wolosky (HowardWolosky)
left a comment
There was a problem hiding this comment.
Update looks great -- we just need to resolve the duplicative tests.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Simon Heather (X-Guardian)
commented
Jun 27, 2020
Howard Wolosky (@HowardWolosky) Can we trigger the CI for this PR? |
Howard Wolosky (HowardWolosky)
commented
Jun 27, 2020
/azp run PowerShellForGitHub-CI |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Howard Wolosky (HowardWolosky)
commented
Jun 27, 2020
Now that #205 is in, you have some expected merge conflicts to deal with. |
Howard Wolosky (HowardWolosky)
commented
Jun 28, 2020
/azp run PowerShellForGitHub-CI |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Description
This PR updates the Pester tests for the
GitHubRepositoriesmodule to increase the code coverage. This then exposed a code path in theGet-GithubRepositorythat could never be taken, so the function was refactored to remove this path and simplify the function logic.A missing
ValidateSetwas also added to theAffiliationparameter of theGet-GitHubRepositoryfunction and incorrect Comment Based Help descriptions for theGet-GitHubRepositoryCollaboratorandMove-GitHubRepositoryOwnershipfunctions were fixed.Issues Fixed
None
References
N/A
Checklist
Changes to the manifest file follow the manifest guidance.Relevant usage examples have been added/updated in USAGE.md.If desired, ensure your name is added to our Contributors list