Skip to content

Commit a7a545c

Browse files
committed
Disable attachment test until attachments are formally released
Attachments are still SPI, and SPI is available on linux and windows but not through Xcode on macOS. We can reenable this once attachments are formalized and no longer SPI.
1 parent 6790937 commit a7a545c

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

assets/test/defaultPackage/Tests/PackageTests/PackageTests.swift

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ final class DebugReleaseTestSuite: XCTestCase {
4242
}
4343
}
4444

45-
#if swift(>=6.1)
46-
@_spi(Experimental) import Testing
47-
#elseif swift(>=6.0)
45+
// #if swift(>=6.1)
46+
// @_spi(Experimental) import Testing
47+
// #elseif swift(>=6.0)
4848
import Testing
49-
#endif
49+
// #endif
5050

5151
#if swift(>=6.0)
5252
@Test func topLevelTestPassing() {
@@ -112,11 +112,12 @@ struct MixedSwiftTestingSuite {
112112
}
113113
#endif
114114

115-
#if swift(>=6.1)
116-
@Test func testAttachment() throws {
117-
Attachment("Hello, world!", named: "hello.txt").attach()
118-
}
119-
#endif
115+
// Disabled until Attachments are formalized and released.
116+
// #if swift(>=6.1)
117+
// @Test func testAttachment() throws {
118+
// Attachment("Hello, world!", named: "hello.txt").attach()
119+
// }
120+
// #endif
120121

121122
final class DuplicateSuffixTests: XCTestCase {
122123
func testPassing() throws {}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ suite("Test Explorer Suite", function () {
192192
"testWithKnownIssue()",
193193
"testWithKnownIssueAndUnknownIssue()",
194194
"testLotsOfOutput()",
195-
"testAttachment()",
196195
"DuplicateSuffixTests",
197196
["testPassing()", "testPassingSuffix()"],
198197
],
@@ -255,7 +254,8 @@ suite("Test Explorer Suite", function () {
255254
);
256255
});
257256

258-
test("attachments", async function () {
257+
// Disabled until Attachments are formalized and released.
258+
test.skip("attachments", async function () {
259259
// Attachments were introduced in 6.1
260260
if (workspaceContext.swiftVersion.isLessThan(new Version(6, 1, 0))) {
261261
this.skip();

0 commit comments

Comments
 (0)