Member-only story
A SwiftMonkey Tutorial
How can we create better UI tests?
2 min readNov 27, 2019
Prerequisites:
- Some knowledge of CocoaPods in order to install SwiftMonkey
Terminology
UITests: Testing by interacting and validating the behaviour of UI elements
Background
The examples below use a simple setup of SwiftMonkey to help those not familiar with it. There’s even code in the git repo to help you out!
Tutorial
Create a new Single View project
$ pod init
$ vim podfile
Add the following to the pod file:
target ‘SwiftMonkeyTutorial’ do
pod “SwiftMonkeyPaws”, ‘~> 2.1.0’
end
target ‘SwiftMonkeyTutorialTests” do
pod ‘SwiftMonkey’, ‘~> 2.1.0’
end
target ‘SwiftMonkeyTutorialUITests” do
pod ‘SwiftMonkey’, ‘~> 2.1.0’
end
$ pod install