Jonathan Grynspan
Jonathan Grynspan
Tracked internally as rdar://88647458.
A common use case for `XCTActivity` is to divide longer tests up into subtasks.
Basically, yeah. :) Whether or not they run _serially_ is its own question and something we have to answer if/when we design this API for Swift Testing. XCTest is originally...
I think the right basic shape for this is some protocol, i.e.: ```swift protocol CustomWhateverable { static func beforeAll(in suiteType: Self.Type) async throws static func afterAll(in suiteType: Self.Type) async throws...
Can you elaborate a bit about what you mean by "hook" here? Presumably not the typical usage of the term where a callback can be set for some functionality, since...
Is it necessary in this scenario for the logic to run before `main()`, or just that it run once and run early?
Most scenarios that might need something like this are also solved by Swift concurrency, which is why we didn't implement an interface for it. For instance, if you expect functions...
swift-testing is, of course, a _Swift_ testing library. C code that behaves well when imported into Swift is testable too, but esoteric C behaviour is beyond the library's purview. That's...
So, for `NSLock` and `os_unfair_lock`/`OSAllocatedUnfairLock`, the primitive locking/unlocking functions are barred from use in async contexts and you should use the `withLock {}` API instead. This API has a built-in...
I think in the general case that can be provided with a static or global `let`: ```swift // at top level of file private let setupWork: Void = { //...