From 6337f4b04eedf32766e21be5ac548d8f8d9da16a Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 13 Oct 2025 21:24:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=B2=20[Fix]:=20Don't=20count=20filtere?= =?UTF-8?q?d=20tests=20as=20failed=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/main.ps1 | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/main.ps1 b/scripts/main.ps1 index 272030a..0690071 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -114,7 +114,6 @@ foreach ($expected in $expectedTestSuites) { $hasPassedValue = $null -ne $result.Passed $hasFailedValue = $null -ne $result.Failed $hasInconclusiveValue = $null -ne $result.Inconclusive - $hasNotRunValue = $null -ne $result.NotRun $testFailure = ( $result.Result -ne 'Passed' -or @@ -123,8 +122,7 @@ foreach ($expected in $expectedTestSuites) { ($hasTestsValue -and $result.Tests -eq 0) -or ($hasPassedValue -and $hasTestsValue -and $result.Tests -gt 0 -and $result.Passed -eq 0) -or ($hasFailedValue -and $result.Failed -gt 0) -or - ($hasInconclusiveValue -and $result.Inconclusive -gt 0) -or - ($hasNotRunValue -and $result.NotRun -gt 0) + ($hasInconclusiveValue -and $result.Inconclusive -gt 0) ) if ($testFailure) { @@ -179,10 +177,6 @@ foreach ($expected in $expectedTestSuites) { $null = $failureReasons.Add("$($result.Inconclusive) tests were inconclusive in file: $($expected.Name)") } - if ($hasNotRunValue -and $result.NotRun -gt 0) { - $null = $failureReasons.Add("$($result.NotRun) tests were not run in file: $($expected.Name)") - } - foreach ($reason in $failureReasons) { Write-GitHubError $reason $totalErrors++