Skip to content
Merged
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
7 changes: 2 additions & 5 deletions Sources/Build/LLBuildCommands.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ final class TestDiscoveryCommand: CustomLLBuildCommand, TestBuildCommand {

fileprivate extension \#(className) {
@available(*, deprecated, message: "Not actually deprecated. Marked as deprecated to allow inclusion of deprecated tests (which test deprecated functionality) without warnings")
@MainActor
static let __allTests__\#(className) = [
static nonisolated(unsafe) let __allTests__\#(className) = [
\#(testMethods.map(\.allTestsEntry).joined(separator: ",\n "))
]
}
Expand All @@ -88,13 +87,12 @@ final class TestDiscoveryCommand: CustomLLBuildCommand, TestBuildCommand {
content +=
#"""
@available(*, deprecated, message: "Not actually deprecated. Marked as deprecated to allow inclusion of deprecated tests (which test deprecated functionality) without warnings")
@MainActor
func __\#(module)__allTests() -> [XCTestCaseEntry] {
return [
\#(
testsByClassNames.map { "testCase(\($0.key).__allTests__\($0.key))" }
.joined(separator: ",\n ")
)
)
]
}
"""#
Expand Down Expand Up @@ -163,7 +161,6 @@ final class TestDiscoveryCommand: CustomLLBuildCommand, TestBuildCommand {
import XCTest

@available(*, deprecated, message: "Not actually deprecated. Marked as deprecated to allow inclusion of deprecated tests (which test deprecated functionality) without warnings")
@MainActor
public func __allDiscoveredTests() -> [XCTestCaseEntry] {
\#(testsKeyword) tests = [XCTestCaseEntry]()

Expand Down