v0.10.0
This release contains big changes to running snapshot tests locally.
PreviewTest
has been renamed toAccessibilityPreviewTest
and theenableAccessibilityAudit
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 usingPreviewTest
.- 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.