Skip to content

Commit

Permalink
Fix XCTest - Run Multiple Times test
Browse files Browse the repository at this point in the history
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
  • Loading branch information
plemarquand committed Dec 11, 2024
1 parent cf37af5 commit 5c1ab79
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ suite("Test Explorer Suite", function () {
test("@slow runs an XCTest multiple times", async function () {
const testItems = await gatherTests(
testExplorer.controller,
"PackageTests.topLevelTestPassing()"
"PackageTests.PassingXCTestSuite/testPassing"
);

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

assertTestResults(testRun, {
passed: ["PackageTests.topLevelTestPassing()"],
passed: [
"PackageTests.PassingXCTestSuite",
"PackageTests.PassingXCTestSuite/testPassing",
],
});
});
});
Expand Down

0 comments on commit 5c1ab79

Please sign in to comment.