I had this idea that it would be cool to combine snapshot testing with previews, so the developer only had to write previews once, and they would get snapshot tests for free. To do this I would need a way of enumerating the PreviewProviders (ideally inside of a test target, but that's not a hard requirement could be an external process).
So my question, any idea how xcode is able to find the PreviewProviders? Unlike XCTest which is able to use the ObjectiveC runtime to find tests, PreviewProviders are pure swift.