iOS Snapshot Test Case
Snapshot view unit tests for iOS (by uber)
Cuckoo
Boilerplate-free mocking framework for Swift! (by Brightify)
iOS Snapshot Test Case | Cuckoo | |
---|---|---|
3 | 2 | |
1,827 | 1,713 | |
0.4% | 0.4% | |
2.4 | 8.1 | |
6 months ago | 26 days ago | |
Objective-C | Swift | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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
Posts with mentions or reviews of iOS Snapshot Test Case.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-28.
-
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
Posts with mentions or reviews of Cuckoo.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-12.
-
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?
When comparing iOS Snapshot Test Case and Cuckoo you can also consider the following projects:
second_curtain - Upload failing iOS snapshot tests cases to S3
Mockingbird - A Swifty mocking framework for Swift and Objective-C.
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.
Mockingjay - An elegant library for stubbing HTTP requests with ease in Swift
SnapshotTesting - 📸 Delightful Swift snapshot testing.
Mockit - A simple mocking framework for Swift, inspired by the famous http://mockito.org/