Update environment tests to meet Pester 4.0.0 standards - #133
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #133 +/- ##
===================================
Coverage 83% 83%
===================================
Files 19 19
Lines 2760 2760
Branches 4 4
===================================
Hits 2305 2305
Misses 451 451
Partials 4 4 |
Mike Hendrickson (mhendric)
left a comment
There was a problem hiding this comment.
Reviewed 4 of 5 files at r1, 1 of 1 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on Daniel Scott-Raynsford (@PlagueHO))
Tests/Integration/MSFT_EnvironmentResource.config.ps1, line 34 at r2 (raw file):
$Target = ('Process', 'Machine')
Non blocking. It's not explicitly stated in the style guidelines, but all examples in 'Correct Format for Arrays' show an @ symbol before the parenthesis. Up to you whether you want to update this to match the examples.
Daniel Scott-Raynsford (PlagueHO)
left a comment
There was a problem hiding this comment.
All done. Thanks Mike Hendrickson (@mhendric)
Reviewable status: 4 of 5 files reviewed, 1 unresolved discussion (waiting on Mike Hendrickson (@mhendric))
Tests/Integration/MSFT_EnvironmentResource.config.ps1, line 34 at r2 (raw file):
Previously, mhendric (Mike Hendrickson) wrote…
$Target = ('Process', 'Machine')Non blocking. It's not explicitly stated in the style guidelines, but all examples in 'Correct Format for Arrays' show an @ symbol before the parenthesis. Up to you whether you want to update this to match the examples.
Good catch! This is correct it should have an @()
Done.
Mike Hendrickson (mhendric)
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r3.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on Mike Hendrickson (@mhendric))
Mike Hendrickson (mhendric)
left a comment
There was a problem hiding this comment.
Reviewable status:
complete! all files reviewed, all discussions resolved
|
Thanks Mike Hendrickson (@mhendric) - feel free to merge my branches after |
Pull Request (PR) description
This PR updates the tests for the Environment resource to meet Pester 4.0.0 standards and corrects a couple of style issues.
This Pull Request (PR) fixes the following issues
Task list
Entry should say what was changed, and how that affects users (if applicable).
and comment-based help.
Johan Ljunggren (@johlju) - would you mind reviewing when you have time?
This change is