Skip to content

Commit

Permalink
Skip some broken pester tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCakeIsNaOH committed Aug 3, 2022
1 parent 338f43c commit dd845b7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Invoke-Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ try {
Verbosity = 'Minimal'
}
Filter = @{
ExcludeTag = 'Background', 'Licensed', 'CCM', 'WIP', 'NonAdmin'
ExcludeTag = 'Background', 'Licensed', 'CCM', 'WIP', 'NonAdmin', 'NaOHBroken'
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/chocolatey-tests/choco-info.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Describe "choco info" -Tag Chocolatey, InfoCommand {
$Output.Lines | Should -Contain "${Title}: $Value"
}

It "Displays published date in format M/DD/YYYY" {
It "Displays published date in format M/DD/YYYY" -Tag NaOHBroken {
$Output.String | Should -Match "Published: (?<month>\d{1,2})\/(?<day>\d{1,2})\/(?<year>\d{4})"
}

Expand Down
8 changes: 4 additions & 4 deletions tests/chocolatey-tests/choco-install.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ Describe "choco install" -Tag Chocolatey, InstallCommand {
}

# This behaviour was fixed in 0.10.16
It "Should not have been able to delete the rollback" -Skip:(-not (Test-ChocolateyVersionEqualOrHigherThan "0.10.16-beta")) {
It "Should not have been able to delete the rollback" -Tag NaOHBroken -Skip:(-not (Test-ChocolateyVersionEqualOrHigherThan "0.10.16-beta")) {
"$env:ChocolateyInstall\lib-bkp\$PackageUnderTest" | Should -Exist
}

Expand Down Expand Up @@ -383,7 +383,7 @@ Describe "choco install" -Tag Chocolatey, InstallCommand {
$LockedFile.Close()
}

It "Exits with Success (0)" -Tag FossOnly {
It "Exits with Success (0)" -Tag NaOHBroken {
$Output.ExitCode | Should -Be 0
}

Expand All @@ -401,7 +401,7 @@ Describe "choco install" -Tag Chocolatey, InstallCommand {
$XML.package.metadata.version | Should -Be "1.0.0"
}

It "Should not have been able to delete the rollback" -Tag FossOnly {
It "Should not have been able to delete the rollback" -Tag NaOHBroken {
"$env:ChocolateyInstall\lib-bkp\$PackageUnderTest" | Should -Exist
}

Expand Down Expand Up @@ -589,7 +589,7 @@ Describe "choco install" -Tag Chocolatey, InstallCommand {
"$env:ChocolateyInstall\lib\$($PackageUnderTest).1.0.0" | Should -Exist
}

It "Removed the previous version of the package from the lib directory" {
It "Removed the previous version of the package from the lib directory" -Tag NaOHBroken {
"$env:ChocolateyInstall\lib\$($PackageUnderTest)" | Should -Not -Exist
}

Expand Down
4 changes: 2 additions & 2 deletions tests/chocolatey-tests/choco-list.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ Describe "choco <_>" -ForEach $Command -Tag Chocolatey, ListCommand, SearchComma
$Output = Invoke-Choco $_ isdependency --AllVersions --exact --local-only
}

It "Exits with Success (0)" {
It "Exits with Success (0)" -Tag NaOHBroken {
$Output.ExitCode | Should -Be 0
}

It "Shows version <_> of local package" -ForEach @("2.0.0"; "1.1.0") {
It "Shows version <_> of local package" -Tag NaOHBroken -ForEach @("2.0.0"; "1.1.0") {
$Output.Lines | Should -Contain "isdependency $_"
}
}
Expand Down

0 comments on commit dd845b7

Please sign in to comment.