Skip to content

Commit 9ad0af4

Browse files
authored
Fix XCTest - Run Multiple Times test (#1265)
This test was copied from the swift-testing version, but the names of the expected tests were not changed. This would pass on 6.0 since it would do the same thing that the swift-testing test did, but because swift-testing isn't supported on < Swift 6.0 this test would fail on 5.10 and earlier. Issue: #1262
1 parent e3ade90 commit 9ad0af4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ suite("Test Explorer Suite", function () {
449449
test("@slow runs an XCTest multiple times", async function () {
450450
const testItems = await gatherTests(
451451
testExplorer.controller,
452-
"PackageTests.topLevelTestPassing()"
452+
"PackageTests.PassingXCTestSuite/testPassing"
453453
);
454454

455455
await testExplorer.folderContext.workspaceContext.focusFolder(
@@ -466,7 +466,10 @@ suite("Test Explorer Suite", function () {
466466
await eventPromise(testRun.onTestRunComplete);
467467

468468
assertTestResults(testRun, {
469-
passed: ["PackageTests.topLevelTestPassing()"],
469+
passed: [
470+
"PackageTests.PassingXCTestSuite",
471+
"PackageTests.PassingXCTestSuite/testPassing",
472+
],
470473
});
471474
});
472475
});

0 commit comments

Comments
 (0)