-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add test coverage for Registry #4354
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
Add test coverage for Registry #4354
Conversation
Add coverage for Get-Item, Get-ChildItem, Set-Item, and Clear-Item
Missing tests:
|
@SteveL-MSFT These test run with the tag |
@jeffbi try |
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.
Minor comment
@@ -125,6 +169,22 @@ Describe "Basic Registry Provider Tests" -Tags @("CI", "RequireAdminOnWindows") | |||
$property."$testPropertyName" | Should Be 0 | |||
} | |||
|
|||
It "Verity Clear-Item" { |
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.
Typo Verity->Verify
$key.Property.Length | Should BeExactly 0 | ||
} | ||
|
||
It "Verity Clear-Item with -WhatIf" { |
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.
Typo here has well Verify
Typos fixed. The Travis failure seems to be in a test for Invoke-Item. |
@jeffbi I have a PR to change the invoke-item tests to Feature as they shouldn't be CI anyways, I'll restart the Mac job, there's a chance it'll pass as it's a timing issue |
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.
LGTM
Addresses parts of #4148
Add coverage for
Get-Item
,Get-ChildItem
,Set-Item
, andClear-Item