ViewInspector
UI Testing Cheat Sheet
ViewInspector | UI Testing Cheat Sheet | |
---|---|---|
3 | - | |
2,241 | 2,169 | |
1.3% | - | |
8.6 | 0.0 | |
about 1 month ago | over 4 years ago | |
Swift | Swift | |
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.
ViewInspector
-
What design patterns exist and which should I learn for SwiftUI?
Unfortunately there is no Apple made built-in way to unit-test SwiftUI views but we are using ViewInspector package for that and inject data / model through environmentObject or AppStorage or FetchRequest or whatever mechanism the view is using. Once you embrace ViewInspector, injecting data into the view is not a big deal.
-
SwiftUI unit tests FTW
I'm so thankful for ViewInspector https://github.com/nalexn/ViewInspector which makes it possible.
-
Top swift libraries and why?
ViewInspector is a great library for testing SwiftUI views, without the heavy lifting of XCUI tests. You can quickly test view state changes, assert view colors or fonts etc. Almost any property can be tested, so that you know a view behaves as it should.
UI Testing Cheat Sheet
We haven't tracked posts mentioning UI Testing Cheat Sheet yet.
Tracking mentions began in Dec 2020.
What are some alternatives?
Kif - Keep It Functional - An iOS Functional Testing Framework
OHHTTPStubs - Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
EarlGrey - :tea: iOS UI Automation Test Framework
robotframework-appiumlibrary - AppiumLibrary is an appium testing library for RobotFramework
UI tests without UI Testing experiment - Testing the UI without UI Testing, a Swift experiment.
appium
Floater_ - Add a floating fingertip to your app demo. www.buglife.com
Mockingjay - An elegant library for stubbing HTTP requests with ease in Swift
AutoMate - Swift framework containing a set of helpful XCTest extensions for writing UI automation tests
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