UI tests without UI Testing experiment
This gist is a small experiment to see if there's an "in-between" for testing iOS applications. More feature-level than XCTest but not as heavy handed (or slow and brittle) as UI Testing.
The general idea is to provide an API similar to UI Testing but be able to spin up any controller on the fly. By putting the controller inside of a window the test behaves a bit more like the real app.
Currently, only two methods are explored: finding labels and buttons. An obvious omission is searching for the view recursively. A perhaps less obvious omission is still being able to tap disabled buttons.
This extends on my thoughts in a recent blog, Testing the UI without UI Testing in Swift.
Is this crazy?
Probably! But maybe this is something worth exploring.
Have you tried anything like this? Is this obviously a maintenance nightmare? I would love to hear what you think.