Skip to content
Open
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
6 changes: 3 additions & 3 deletions ConfluencePS.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Task Lint {
}
}
$styleResults = Invoke-Pester -Configuration $styleConfig
Assert-True ($styleResults.FailedCount -eq 0) "$($styleResults.FailedCount) style test(s) failed."
Assert-True (($styleResults.FailedCount + $styleResults.FailedBlocksCount + $styleResults.FailedContainersCount) -eq 0) "$($styleResults.FailedCount) style test(s) failed."

$pssaConfig = New-PesterConfiguration -Hashtable @{
Run = @{
Expand All @@ -140,7 +140,7 @@ Task Lint {
}
}
$pssaResults = Invoke-Pester -Configuration $pssaConfig
Assert-True ($pssaResults.FailedCount -eq 0) "$($pssaResults.FailedCount) analyzer test(s) failed."
Assert-True (($pssaResults.FailedCount + $pssaResults.FailedBlocksCount + $pssaResults.FailedContainersCount) -eq 0) "$($pssaResults.FailedCount) analyzer test(s) failed."
}

Task Clean {
Expand Down Expand Up @@ -499,7 +499,7 @@ Task Test {

$pesterConfig = New-PesterConfiguration -Hashtable $pesterConfigHash
$testResults = Invoke-Pester -Configuration $pesterConfig
Assert-True ($testResults.FailedCount -eq 0) "$($testResults.FailedCount) Pester test(s) failed."
Assert-True (($testResults.FailedCount + $testResults.FailedBlocksCount + $testResults.FailedContainersCount) -eq 0) "$($testResults.FailedCount) Pester test(s) failed."
}

# Synopsis: Run integration tests against live Confluence (Cloud or Data Center)
Expand Down