Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions test/powershell/engine/Help/UpdatableHelpSystem.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,15 @@ function RunUpdateHelpTests
{
param (
[string]$tag = "CI",
[switch]$useSourcePath,
[switch]$Pending
[switch]$useSourcePath
)

foreach ($moduleName in $modulesInBox)
{
if ($powershellCoreModules -contains $moduleName)
{

It "Validate Update-Help for module '$moduleName'" -Pending:$Pending {
It "Validate Update-Help for module '$moduleName'" {

# If the help file is already installed, delete it.
Get-ChildItem $testCases[$moduleName].HelpInstallationPath -Include @("*help.xml") -Recurse -ea SilentlyContinue |
Expand Down Expand Up @@ -220,8 +219,7 @@ function RunUpdateHelpTests
function RunSaveHelpTests
{
param (
[string]$tag = "CI",
[switch]$Pending
[string]$tag = "CI"
)

foreach ($moduleName in $modulesInBox)
Expand All @@ -233,7 +231,7 @@ function RunSaveHelpTests
$saveHelpFolder = Join-Path $TestDrive (Get-Random).ToString()
New-Item $saveHelpFolder -Force -ItemType Directory

It "Validate Save-Help for the '$moduleName' module" -Pending:$Pending {
It "Validate Save-Help for the '$moduleName' module" {

if ((Get-UICulture).Name -ne "en-Us")
{
Expand Down Expand Up @@ -285,7 +283,7 @@ Describe "Validate Update-Help from the Web for one PowerShell Core module." -Ta
$ProgressPreference = $SavedProgressPreference
}

RunUpdateHelpTests -tag "CI" -Pending
RunUpdateHelpTests -tag "CI"
}

Describe "Validate Update-Help from the Web for all PowerShell Core modules." -Tags @('Feature', 'RequireAdminOnWindows', 'RequireSudoOnUnix') {
Expand Down Expand Up @@ -332,7 +330,7 @@ Describe "Validate 'Save-Help -DestinationPath for one PowerShell Core modules."
AfterAll {
$ProgressPreference = $SavedProgressPreference
}
RunSaveHelpTests -tag "CI" -Pending
RunSaveHelpTests -tag "CI"
}

Describe "Validate 'Save-Help -DestinationPath for all PowerShell Core modules." -Tags @('Feature', 'RequireAdminOnWindows') {
Expand Down