Skip to content

Commit 30a3d69

Browse files
authored
Merge pull request #1200 from ahoppen/skip-hover-tests-on-old-toolchains
Skip a few hover tests if sourcekitd doesn’t return raw documentation in cursor info
2 parents eb9b0c8 + 4805ded commit 30a3d69

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)