mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Test fixes and code coverage automation fixes. (#5046)
* Test fixes and updates to code coverage automation * Fixed UpdatableHelpSystem tests and tab completion tests * Fixed tab completion tests to better disambiguate root/interop namespace. * Skip SSH test if ssh.exe is not present
This commit is contained in:
committed by
Dongbo Wang
parent
37b5a47fa9
commit
486fb97123
@@ -188,10 +188,14 @@ Describe "Validate about_help.txt under culture specific folder works" -Tags @('
|
||||
New-ModuleManifest -Path $modulePath\test.psd1 -RootModule test.psm1
|
||||
Set-Content -Path $modulePath\test.psm1 -Value "function foo{}"
|
||||
Set-Content -Path $modulePath\en-US\about_testhelp.help.txt -Value "Hello" -NoNewline
|
||||
## This is needed for getting about topics. We use -Force, so we always update.
|
||||
Update-Help -Force
|
||||
}
|
||||
|
||||
AfterAll {
|
||||
Remove-Item $modulePath -Recurse -Force
|
||||
# Remove all the help content.
|
||||
Get-ChildItem -Path $PSHOME -Include @('about_*.txt', "*help.xml") -Recurse | Remove-Item -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
It "Get-Help should return help text and not multiple HelpInfo objects when help is under `$pshome path" {
|
||||
|
||||
Reference in New Issue
Block a user