Skip to content

Releases: Sherlouk/swift-snapshot-testing-stitch

Add HEIC Support

18 Jan 10:38
8e5e510
Compare
Choose a tag to compare

With thanks to @alexey1312, we now support creating and storing images in the HEIC format. This is functionally the same as PNG but allows for much smaller file sizes.

To use this new capability, simply add format: .heic() to your stitch function call. See tests for more complete examples.

Add Configure Block

23 Jul 09:59
0fa401e
Compare
Choose a tag to compare

This version adds a new StitchTask struct which can be used in replacement of the tuples which were required previously. The old method is still supported, so is entirely backwards compatible.

The new StitchTask struct also supports a new, optional, configuration block. If used, it allows you to mutate the underlying input value before the snapshot is taken for that task. This can be handy if you have functionality not controlled by traits and still want to visualise multiple variants.

Beware though, future stitches using the same value object will use the now mutated version. We would recommend that if you're configuring one task, that you reset/configure every task that uses the same object to prevent inconsistencies and inaccuracies.

Version One

27 Jun 12:18
Compare
Choose a tag to compare

Introducing SnapshotTesting Stitch.

A new extension to SnapshotTesting by Pointfree, which allows you to generate snapshots combining multiple strategies into one.

Fix Unnamed Assets

27 Jun 09:48
Compare
Choose a tag to compare
  • Fixed an issue where unnamed tasks would output the wrong image
  • Increased the amount of customisation options in StitchStyle
  • Allow for precision to be set in the public interface
  • Reduced Swift build tools requirement to 5.2 (was 5.3)
  • Improved documentation

Support UIView

26 Jun 18:13
Compare
Choose a tag to compare

Removes the tie to UIViewController which allows this feature to be used by any other SnapshotTesting strategy as long as the output is a UIImage.

Initial Release

26 Jun 18:07
Compare
Choose a tag to compare
0.0.1

Initial Commit