From 52d7417c2650f486c39f33bfcac3b7cd3553cd5e Mon Sep 17 00:00:00 2001 From: Paul LeMarquand Date: Thu, 18 Sep 2025 10:26:46 -0400 Subject: [PATCH] Fix withKnownIssue not marking test as skipped in nightly toolchains With the introduction of issue severity, the issue payload contains the flag `isFailure`. If this is true, we were assuming that the issue didn't meet the severity threshold. However if an issue is skipped with `withKnownIssue`, `isFailure` would be false but `isKnown` is true. In this case we still want to record the issue and have the test be marked as skipped. --- src/TestExplorer/TestParsers/SwiftTestingOutputParser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TestExplorer/TestParsers/SwiftTestingOutputParser.ts b/src/TestExplorer/TestParsers/SwiftTestingOutputParser.ts index 769c5bdf4..381bd3ad0 100644 --- a/src/TestExplorer/TestParsers/SwiftTestingOutputParser.ts +++ b/src/TestExplorer/TestParsers/SwiftTestingOutputParser.ts @@ -381,7 +381,7 @@ export class SwiftTestingOutputParser { .map(message => MessageRenderer.render(message)) .join("\n"); - if (payload.issue.isFailure === false) { + if (payload.issue.isFailure === false && !payload.issue.isKnown) { return; }