skyweb07 / Snap.swift

Snapshot testing in a snap 🎨
MIT License
422 stars 19 forks source link

Multiple device screenshots #24

Closed skyweb07 closed 6 years ago

skyweb07 commented 6 years ago

This PR fixes #21

Now you can test a view for different screen sizes like this:

expect(view).toMatchSnapshot(for: [.iPhone8])
or 
expect(view).toMatchSnapshot(for: .allDevices)
or
expect(view).toMatchSnapshot(for: .iPhoneDevices)
or
expect(view).toMatchSnapshot(for: .iPadDevices)