Swift-snapshot-testing-stitch adds the ability to stitch multiple UIView's or UIViewController's together in a single test. GRDBSnapshotTesting adds snapshot strategy for testing SQLite database migrations made with GRDB.ĪccessibilitySnapshot adds easy regression testing for iOS accessibility.ĪccessibilitySnapshotColorBlindness adds snapshot strategies for color blindness simulation on iOS views, view controllers and images. Swift-html is a Swift DSL for type-safe, extensible, and transformable HTML documents and includes an HtmlSnapshotTesting module to snapshot test its HTML documents. Swift-snapshot-testing-nimble adds Nimble matchers for SnapshotTesting. Configure failure messages to print diff commands for Kaleidoscope (or your diff tool of choice). Snapshot encodable data structures into their JSON and property list representations. Most snapshot testing libraries don't support these view subclasses. SceneKit, SpriteKit, and WebKit support.Write snapshot tests for iOS, Linux, macOS, and tvOS. Supports any platform that supports Swift.Text differences are rendered in inline error messages. Image differences are captured as XCTest attachments. Render views and view controllers for specific devices and trait collections from a single simulator. Assert from any XCTest case or Quick spec. New snapshots are recorded whether isRecording mode is true or not. Snapshots are automatically saved alongside your tests. Don't fuss with scheme settings and environment variables. If you can convert it to an image, string, data, or your own diffable format, you can snapshot test it! Build your own snapshot strategies from scratch or transform existing ones. Snapshot testing isn't just for UIViews and CALayers. product( name: "SnapshotTesting ", package: "swift-snapshot-testing "), If you want to use SnapshotTesting in any other project that uses SwiftPM, add the package as a dependency in Package.swift: #SCREEN SNAPSHOT IPHONE UPDATE#
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |