Skip to content

Commit 8757f0e

Browse files
plemarquandmichael-weng
authored andcommitted
Add expected issue ansi to test expectation
1 parent bf631d3 commit 8757f0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/integration-tests/testexplorer/TestExplorerIntegration.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@ suite("Test Explorer Suite", function () {
438438
let xcTestFailureMessage: string;
439439

440440
beforeEach(() => {
441+
const suffix = process.platform === "win32" ? "\x1b[0K" : "";
442+
441443
// From 5.7 to 5.10 running with the --parallel option dumps the test results out
442444
// to the console with no newlines, so it isn't possible to distinguish where errors
443445
// begin and end. Consequently we can't record them, and so we manually mark them
@@ -446,7 +448,7 @@ suite("Test Explorer Suite", function () {
446448
runProfile === TestKind.parallel &&
447449
!workspaceContext.toolchain.hasMultiLineParallelTestOutput
448450
? "failed"
449-
: "failed - oh no";
451+
: `failed - oh no${suffix}`;
450452
});
451453

452454
suite(runProfile, () => {

0 commit comments

Comments
 (0)