iOS Snapshot Test Case
Cuckoo
iOS Snapshot Test Case | Cuckoo | |
---|---|---|
3 | 2 | |
1,771 | 1,640 | |
0.7% | 0.5% | |
1.8 | 6.4 | |
3 months ago | 12 days ago | |
Objective-C | Swift | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
iOS Snapshot Test Case
-
Looking for inspiration on UI tests
The functionality of XCTest for UI testing is limited. I use https://github.com/uber/ios-snapshot-test-case and compare snapshots instead of making calls to XCTest directly. This has worked well so far.
-
Visual tests
Common libraries include https://github.com/uber/ios-snapshot-test-case/ and https://github.com/pointfreeco/swift-snapshot-testing.
- iOSSnapshotTestCase or SnapshotTesting?
Cuckoo
-
Tests Everywhere - Swift
Swift testing this simple Hello World with XCTest and Cuckoo
-
Swift Mocking Tools. To Use, or Not to Use, That Is the Question
Additional setup: The cuckoo installation process requires adding a new run script into your test target build phases. Include the absolute path to each file and the framework that will generate mocks in this script. Import the generated file into the project once, and then re-generate it to keep it up to date. Class name starts from the word ‘Mock’ — each test double you can use as mock, stub, or spy.
What are some alternatives?
SnapshotTesting - 📸 Delightful Swift snapshot testing.
Mockingbird - A Swifty mocking framework for Swift and Objective-C.
ios-snapshot-test-case - Snapshot view unit tests for iOS
Mockingjay - An elegant library for stubbing HTTP requests with ease in Swift
Mockingbird - Simplify software testing, by easily mocking any system using HTTP/HTTPS, allowing a team to test and develop against a service that is not complete or is unstable or just to reproduce planned/edge cases.
Mockit - A simple mocking framework for Swift, inspired by the famous http://mockito.org/
second_curtain - Upload failing iOS snapshot tests cases to S3
SwiftMock - A mocking framework for Swift
NaughtyKeyboard - The Big List of Naughty Strings is a list of strings which have a high probability of causing issues when used as user-input data. This is a keyboard to help you test your app from your iOS device.
Kakapo - 🐤Dynamically Mock server behaviors and responses in Swift
MirrorDiffKit - Graduation from messy XCTAssertEqual messages.
Buildasaur - Automatic testing of your Pull Requests on GitHub and BitBucket using Xcode Server. Keep your team productive and safe. Get up and running in minutes. @buildasaur