Skip to content

Commit 4805ded

Browse files
committed
Skip a few hover tests if sourcekitd doesn’t return raw documentation in cursor info
The formatting of these hover responses contains a newline if we don’t have a raw documentation response. Skip these tests if sourcekitd doesn’t return the raw documentation in cursor info, like we do with other tests in this file. This ensures that all tests are passing in Xcode 15.4 again.
1 parent 17c0a44 commit 4805ded

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/SourceKitLSPTests/HoverTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ final class HoverTests: XCTestCase {
8787
}
8888

8989
func testMultiCursorInfoResultsHoverWithDocumentation() async throws {
90+
try await SkipUnless.sourcekitdReturnsRawDocumentationResponse()
9091
try await assertHover(
9192
"""
9293
/// A struct
@@ -118,6 +119,7 @@ final class HoverTests: XCTestCase {
118119
}
119120

120121
func testHoverNameEscapingOnFunction() async throws {
122+
try await SkipUnless.sourcekitdReturnsRawDocumentationResponse()
121123
try await assertHover(
122124
"""
123125
/// this is **bold** documentation
@@ -134,6 +136,7 @@ final class HoverTests: XCTestCase {
134136
}
135137

136138
func testHoverNameEscapingOnOperator() async throws {
139+
try await SkipUnless.sourcekitdReturnsRawDocumentationResponse()
137140
try await assertHover(
138141
"""
139142
/// this is *italic* documentation

0 commit comments

Comments
 (0)