Skip to content

Commit 79865c7

Browse files
authored
Merge pull request #322 from benlangmuir/for-isdb-test-resources
[test] Move inputsDirectory method from indexstore-db
2 parents f44dbd5 + c634ea8 commit 79865c7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Sources/SKTestSupport/SKTibsTestWorkspace.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ extension SKTibsTestWorkspace {
109109

110110
extension XCTestCase {
111111

112+
/// The path the the test INPUTS directory.
113+
public func inputsDirectory(testFile: String = #file) -> URL {
114+
return URL(fileURLWithPath: testFile)
115+
.deletingLastPathComponent()
116+
.deletingLastPathComponent()
117+
.appendingPathComponent("INPUTS", isDirectory: true)
118+
}
119+
112120
public func staticSourceKitTibsWorkspace(
113121
name: String,
114122
clientCapabilities: ClientCapabilities = .init(),

0 commit comments

Comments
 (0)