Skip to content

Commit 4481b4b

Browse files
authored
Merge pull request #1748 from ahoppen/test-name-assertcodeactions
Pass the test name through `assertCodeActions`
2 parents 3bf05ad + 79ca537 commit 4481b4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/SourceKitLSPTests/CodeActionTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,11 +1119,12 @@ final class CodeActionTests: XCTestCase {
11191119
ranges: [(String, String)] = [],
11201120
exhaustive: Bool = true,
11211121
expected: (_ uri: DocumentURI, _ positions: DocumentPositions) -> [CodeAction],
1122+
testName: String = #function,
11221123
file: StaticString = #filePath,
11231124
line: UInt = #line
11241125
) async throws {
11251126
let testClient = try await TestSourceKitLSPClient(capabilities: clientCapabilitiesWithCodeActionSupport)
1126-
let uri = DocumentURI(for: .swift)
1127+
let uri = DocumentURI(for: .swift, testName: testName)
11271128
let positions = testClient.openDocument(markedText, uri: uri)
11281129
11291130
var ranges = ranges

0 commit comments

Comments
 (0)