mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Fixing get-help on Linux
This commit is contained in:
1 parent
800382f019
commit
3ed7201e21
4 files changed
+55
-3
No files matched your search
@@ -0,0 +1,25 @@
|
||||
Describe 'Basic help system tests' -Tags "CI" {
|
||||
|
||||
Context "Validate help content for cmdlets in Microsof.PowerShell.Core" {
|
||||
|
||||
$cmdlets = get-command -module "Microsoft.PowerShell.Core"
|
||||
$cmdletsToSkip = @(
|
||||
"Get-PSHostProcessInfo",
|
||||
"Out-Default",
|
||||
"Register-ArgumentCompleter"
|
||||
)
|
||||
|
||||
foreach ($cmdletName in $cmdlets)
|
||||
{
|
||||
if ($cmdletsToSkip -notcontains $cmdletName)
|
||||
{
|
||||
It "Validate -Description and -Examples sections in help content. Run 'Get-help -name $cmdletName'" {
|
||||
|
||||
$help = get-help -name $cmdletName
|
||||
$help.Description | Out-String | Should Match $cmdletName
|
||||
$help.Examples | Out-String | Should Match $cmdletName
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user