-
Notifications
You must be signed in to change notification settings - Fork 48
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
xExchInstall: Add remaining xExchInstall Unit Tests and add common setup tests #321
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #321 +/- ##
=====================================
Coverage ? 5.82%
=====================================
Files ? 38
Lines ? 4448
Branches ? 0
=====================================
Hits ? 259
Misses ? 4189
Partials ? 0
Continue to review full report at Codecov.
|
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.
Reviewed 8 of 12 files at r1, 4 of 4 files at r2.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @mhendric)
Tests/Unit/MSFT_xExchInstall.tests.ps1, line 58 at r2 (raw file):
} Describe 'MSFT_xExchInstall\Set-TargetResource' -Tag 'Set' {
Most of the tests below do not assert that the mocks was called. I think we should assert that they are called (or called the correct number of times).
Tests/Unit/xExchangeHelper.tests.ps1, line 615 at r2 (raw file):
'Should do nothing'
Maybe: 'Should not configure WinRM'
Tests/Unit/xExchangeHelper.tests.ps1, line 774 at r2 (raw file):
'Should do nothing'
Maybe revise this to explain what exactly it should not do?
@mhendric Can you verify that the new line endings didn't break the Excel files, e.g E2013Calcv6.6 - Lab.xlsm? If they did, then maybe we need to exclude those file types. |
@johlju It looks like this does break the Excel files. I'll go ahead and revert those to their previous state. Sounds like we will need to exclude these in the future though. What's the best way to do that? |
@johlju I think I figured out how to exclude Excel files. See the included modifications to .gitattributes. Aside from that, all your suggested changes have been made. Thanks. |
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.
Reviewed 3 of 6 files at r3.
Reviewable status:complete! all files reviewed, all discussions resolved
Pull Request (PR) description
Adds remaining unit tests for xExchInstall, and adds most remaining unit tests for common setup functions
Task list
Entry should say what was changed, and how that affects users (if applicable).
and comment-based help.
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)