ios-todo-app-with-unit-testing
ViewInspector
ios-todo-app-with-unit-testing | ViewInspector | |
---|---|---|
3 | 3 | |
0 | 2,055 | |
- | - | |
0.0 | 8.6 | |
about 2 years ago | 9 days 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.
ios-todo-app-with-unit-testing
-
The Ultimate Guide to iOS unit testing with best practices — Part 1
Here's the source code for those who want to play with it.
-
The Ultimate guide to iOS unit testing with best practices — Part 2
The full application source code is available on github
Check out the source code on Github.
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.
What are some alternatives?
UI Testing Cheat Sheet - How do I test this with UI Testing?
Kif - Keep It Functional - An iOS Functional Testing Framework
EarlGrey - :tea: iOS UI Automation Test Framework
robotframework-appiumlibrary - AppiumLibrary is an appium testing library for RobotFramework
Floater_ - Add a floating fingertip to your app demo. www.buglife.com
Cucumber - A home for issues that are common to multiple cucumber repositories
CrashMonkey - Monkey Test Tool For iOS
Zucchini
AutoMate - Swift framework containing a set of helpful XCTest extensions for writing UI automation tests
UI tests without UI Testing experiment - Testing the UI without UI Testing, a Swift experiment.
LayoutTest-iOS - Write unit tests which test the layout of a view in multiple configurations
appium