Does swift-testing support custom initialization of its process / threads?

With task executor preference it should be possible to create a custom thread and use it as a task executor which is then used by swift-testing. It might require some APIs in swift-testing that allow you to hook every call to an async test method similar to BeforeEach which other testing libraries offer while allowing the hook to drive the actual test invocation. But this would be an avenue to explore and doesn't require hooking the global executor.

1 Like