Skip to content

Commit 999f7c1

Browse files
committed
Comment on the need for the Swift compiler sources for testing.
1 parent 675f7f9 commit 999f7c1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Tests/SwiftParserTest/ParserTests.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class ParserTests: XCTestCase {
3333
}
3434
}
3535

36-
/// Run parsr tests on all of the Swift files in the
36+
/// Run parsr tests on all of the Swift files in the given path, recursively.
3737
func runParserTests(
3838
name: String, path: URL, checkDiagnostics: Bool,
3939
shouldExclude: (URL) -> Bool = { _ in false }
@@ -76,6 +76,9 @@ public class ParserTests: XCTestCase {
7676
)
7777
}
7878

79+
/// Test all of the files in the "test" directory of the main Swift compiler.
80+
/// This requires the Swift compiler to have been checked out into the "swift"
81+
/// directory alongside swift-syntax.
7982
func testSwiftTestsuite() throws {
8083
try XCTSkipIf(ProcessInfo.processInfo.environment["SKIP_SELF_PARSE"] == "1")
8184
let testDir = URL(fileURLWithPath: #file)
@@ -97,6 +100,9 @@ public class ParserTests: XCTestCase {
97100
)
98101
}
99102

103+
/// Test all of the files in the "validation-text" directory of the main
104+
/// Swift compiler. This requires the Swift compiler to have been checked
105+
/// out into the "swift" directory alongside swift-syntax.
100106
func testSwiftValidationTestsuite() throws {
101107
try XCTSkipIf(ProcessInfo.processInfo.environment["SKIP_SELF_PARSE"] == "1")
102108
let testDir = URL(fileURLWithPath: #file)
@@ -139,6 +145,7 @@ public class ParserTests: XCTestCase {
139145
|| fileURL.absoluteString.contains("26101-swift-parser-parsenewdeclattribute.swift")
140146
|| fileURL.absoluteString.contains("26773-swift-diagnosticengine-diagnose.swift")
141147
|| fileURL.absoluteString.contains("parser-cutoff.swift")
148+
|| fileURL.absoluteString.contains("26233-swift-iterabledeclcontext-getmembers.swift")
142149
}
143150
)
144151
}

0 commit comments

Comments
 (0)