UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

What library is recommended for doing UI snapshot testing? (iOSSnapshotTestCase?)

Forums > SwiftUI

My application has a graphic that's dynamically created and I would like to check that it is correct. What is the recommended snapshot testing library that people use and are there some examples on using that library? I'm trying to use iOSSnapshotTestCase but there doesn't seem to be much in terms of working with it with SwiftUI. I've tried doing some snapshot comparisons on my own but Apple seems to use jpeg snapshots that make comparison difficult.

1      

Hacking with Swift is sponsored by RevenueCat

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.