One of tuneup’s primary goals is making tests as easy to read as they are easy to write. This is done by grouping actions and assertions together in logical testing units. These tests are idenfitied by a call to the
UIAutomation does most of the heavy lifting, but tuneup refines the interface for a more pleasant experience. Just keep in mind that, under the covers, it’s all UIAutomation.
Step 1: Import Tuneup JS
To import tuneup, use the
#import statement provided by
your tests are located and how you’ve installed tuneup.
Let’s assume that you have a directory for your tests located in
integration at the root of your project file. If you installed it
using CocoaPods, then your import
statement will look like this:
If you’ve installed tuneup manually,
then you will need to figure out the correct path to the
Step 2: Declare a Test
In your test file, the next thing you need to do is declare a new test using the
test function. The function takes
two parameters named
Step 3: Exercise and Validate
Once you’ve written your test, it’s time to run it.