Skip to content

Implement test discovery for swift-testing tests for the textDocument/tests request #1151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Sources/LanguageServerProtocol/SupportTypes/TestItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ public struct TestItem: ResponseType, Equatable {
/// When `nil` the `label` is used.
public let sortText: String?

/// Whether the test is disabled.
public let disabled: Bool

/// The type of test, eg. the testing framework that was used to declare the test.
public let style: String

/// The location of the test item in the source code.
public let location: Location

Expand All @@ -55,6 +61,8 @@ public struct TestItem: ResponseType, Equatable {
label: String,
description: String? = nil,
sortText: String? = nil,
disabled: Bool,
style: String,
location: Location,
children: [TestItem],
tags: [TestTag]
Expand All @@ -63,6 +71,8 @@ public struct TestItem: ResponseType, Equatable {
self.label = label
self.description = description
self.sortText = sortText
self.disabled = disabled
self.style = style
self.location = location
self.children = children
self.tags = tags
Expand Down
1 change: 1 addition & 0 deletions Sources/SourceKitLSP/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ target_sources(SourceKitLSP PRIVATE
Swift/SourceKitD+ResponseError.swift
Swift/SwiftCommand.swift
Swift/SwiftLanguageService.swift
Swift/SwiftTestingScanner.swift
Swift/SymbolInfo.swift
Swift/SyntaxHighlightingToken.swift
Swift/SyntaxHighlightingTokens.swift
Expand Down
Loading