Skip to content

v0.10.0

Compare
Choose a tag to compare
@noahsmartin noahsmartin released this 12 Aug 18:42
· 59 commits to main since this release
3daac0c

This release contains big changes to running snapshot tests locally.

  • PreviewTest has been renamed to AccessibilityPreviewTest and the enableAccessibilityAudit var has been removed. The UI test is now only for running Xcode's accessibility tests on previews. This is a breaking change if you were using PreviewTest.
  • To test just for snapshots without running the accessibility test, you can now create a unit test (rather than UI test). The unit test should inherit from SnapshottingTests.SnapshotTest. This will run faster and be easier to debug than the previous UI test based method.
  • There is also a new SnapshottingTests.PreviewLayoutTest which only tests the previews layout, and doesn't take a snapshot. This runs faster and can be used in CI to ensure no breaking changes are made to previews (such as additions of SwiftUI environment objects) without needing to run entire snapshot tests.