Chapter 8Setting Up Application Data
All along we’ve had to manually make sure NearbyMe starts in the right state for our tests. If we removed a search term, we had to make sure to put it back. This is, unfortunately, fragile. Instead, we want a way to tell our app to launch with a consistent set of data for our tests.
But more than that, we need customized sets of data for different kinds of tests. NearbyMe uses table-view animations to shuffle the search terms around when you switch the sorting order from alphabetical to recently used. We’ve never even checked to see how well it performs with a large number of table cells. These problems require prefabricated application data, and that’s what we’re going to cover next.
We’ll begin by ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access