You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This module has no tests so just write an empty file for it.
147
+
try fileSystem.writeFileContents(file, bytes:"")
148
+
continue
149
+
}
150
+
trywrite(
151
+
tests: tests,
152
+
forModule: module,
153
+
fileSystem: fileSystem,
154
+
path: file
155
+
)
156
+
}
157
157
158
-
lettestsKeyword= tests.isEmpty ?"let":"var"
158
+
lettestsKeyword= tests.isEmpty ?"let":"var"
159
159
160
-
// Write the main file.
161
-
letstream=tryLocalFileOutputByteStream(mainFile)
160
+
// Write the main file.
161
+
letstream=tryLocalFileOutputByteStream(mainFile)
162
162
163
-
stream.send(
164
-
#"""
165
-
import XCTest
163
+
stream.send(
164
+
#"""
165
+
import XCTest
166
166
167
-
@available(*, deprecated, message: "Not actually deprecated. Marked as deprecated to allow inclusion of deprecated tests (which test deprecated functionality) without warnings")
168
-
public func __allDiscoveredTests() -> [XCTestCaseEntry] {
169
-
\#(testsKeyword)tests = [XCTestCaseEntry]()
167
+
@available(*, deprecated, message: "Not actually deprecated. Marked as deprecated to allow inclusion of deprecated tests (which test deprecated functionality) without warnings")
168
+
public func __allDiscoveredTests() -> [XCTestCaseEntry] {
@available(*, deprecated, message: "Not actually deprecated. Marked as deprecated to allow inclusion of deprecated tests (which test deprecated functionality) without warnings")
237
-
struct Runner {
238
-
static func main() {
239
-
\#(testObservabilitySetup)
240
-
XCTMain(__allDiscoveredTests())
225
+
@main struct Runner {
226
+
static func main() async {
227
+
#if canImport(Testing)
228
+
await Testing.swiftPMEntryPoint() as Never
229
+
#endif
230
+
}
241
231
}
232
+
"""#
233
+
)
234
+
case.xctest:
235
+
// Find the inputs, which are the names of the test discovery module(s)
@available(*, deprecated, message: "Not actually deprecated. Marked as deprecated to allow inclusion of deprecated tests (which test deprecated functionality) without warnings")
0 commit comments