mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Get-Help test reported as skipped if not applicable to the platform (#3009)
Addressed #2887
This commit is contained in:
@@ -36,16 +36,15 @@
|
||||
foreach ($cmdlet in $cmdletList)
|
||||
{
|
||||
# If the cmdlet is not preset in CoreCLR, skip it.
|
||||
if (Get-Command $cmdlet.TopicTitle -ea SilentlyContinue)
|
||||
{
|
||||
# TopicTitle - is the cmdlet name in the csv file
|
||||
# HelpURI - is the expected help URI in the csv file
|
||||
$skipTest = (Get-Command $cmdlet.TopicTitle -ea SilentlyContinue) -eq $null
|
||||
|
||||
It "Validate 'get-help $($cmdlet.TopicTitle) -Online'" {
|
||||
$actualURI = Get-Help $cmdlet.TopicTitle -Online
|
||||
$actualURI = $actualURI.Replace("Help URI: ","")
|
||||
$actualURI | Should Be $cmdlet.HelpURI
|
||||
}
|
||||
# TopicTitle - is the cmdlet name in the csv file
|
||||
# HelpURI - is the expected help URI in the csv file
|
||||
|
||||
It "Validate 'get-help $($cmdlet.TopicTitle) -Online'" -Skip:$skipTest {
|
||||
$actualURI = Get-Help $cmdlet.TopicTitle -Online
|
||||
$actualURI = $actualURI.Replace("Help URI: ","")
|
||||
$actualURI | Should Be $cmdlet.HelpURI
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user