ViewInspector
Runtime introspection and unit testing of SwiftUI views (by nalexn)
EarlGrey
:tea: iOS UI Automation Test Framework (by google)
ViewInspector | EarlGrey | |
---|---|---|
3 | 2 | |
2,241 | 5,623 | |
1.3% | 0.1% | |
8.6 | 0.0 | |
about 1 month ago | 7 days ago | |
Swift | Objective-C | |
MIT License | Apache License 2.0 |
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.
ViewInspector
Posts with mentions or reviews of ViewInspector.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-27.
-
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.
EarlGrey
Posts with mentions or reviews of EarlGrey.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-05-08.
-
Android/iOS Developers Working for Google or Facebook - Do you use Flutter or React Native?
Google has a public repository for UI testing on iOS with recent commits: https://github.com/google/EarlGrey/tree/earlgrey2
-
What tools/libraries/practices do you use that improve your iOS development?
https://github.com/google/EarlGrey which is amazing for testing.
What are some alternatives?
When comparing ViewInspector and EarlGrey you can also consider the following projects:
Kif - Keep It Functional - An iOS Functional Testing Framework
robotframework-appiumlibrary - AppiumLibrary is an appium testing library for RobotFramework
appium
UI tests without UI Testing experiment - Testing the UI without UI Testing, a Swift experiment.
Cucumber - A home for issues that are common to multiple cucumber repositories
UI Testing Cheat Sheet - How do I test this with UI Testing?
Bluepill - Bluepill is a reliable iOS testing tool that runs UI tests using multiple simulators on a single machine
Floater_ - Add a floating fingertip to your app demo. www.buglife.com
Zucchini
ViewInspector vs Kif
EarlGrey vs Kif
ViewInspector vs robotframework-appiumlibrary
EarlGrey vs appium
ViewInspector vs UI tests without UI Testing experiment
EarlGrey vs Cucumber
ViewInspector vs UI Testing Cheat Sheet
EarlGrey vs Bluepill
ViewInspector vs Floater_
EarlGrey vs robotframework-appiumlibrary
ViewInspector vs Zucchini
EarlGrey vs UI Testing Cheat Sheet