Snapshot Unit Testing Bad Performance (Up to 200 seconds per test)

Hello,

We’re using snapshot testing in our application (GitHub - pointfreeco/swift-snapshot-testing: 📸 Delightful Swift snapshot testing.) version 1.11.0. Tests run smoothly on our local machines in under 2 minutes, but on Bitrise, it takes up to 45 minutes.

Some tests get stuck randomly (attached files show the difference in execution times). Local tests don’t have this problem. We use SwiftUI and avoid intentional delays.

We’ve separated tests into local packages, and we’ve disabled testing the monolith due to the slow execution of “Touching XXX.App” step.

Any insights on resolving this performance gap would be appreciated.

We are using XCode 14.2 MacOS 13.2

Thank you!
Pablo

I can’t attach more than 1 image per post…

Scheme:

Are there any updates about this I am also running into slow snapshot test