From the course: iOS App Development: Test-Driven Development

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Compare movies

Compare movies

From the course: iOS App Development: Test-Driven Development

Start my 1-month free trial

Compare movies

- [Instructor] We're at a good place to stop for a second and take a look at the console panel and unpack some of the logs we've been getting now that we have a growing test suite. So I'm going to drag up and expand to the side and scroll to the top. Now here we'll see that our latest test run produced a log for each test function we wrote as well as how long each took. At the bottom of the log you'll find a more condensed summary of each Swift test file we have with how many failures each one had and their test duration. Finally, there's a directory path to where the test session log is stored on your hard drive if you ever need it. Now that that's out of the way, let's revisit our movie struct test file. One of the last things we need to do is update our movie struct so that we can directly compare movie instances and their properties. So let's start a new test function here, func testEquatable_ReturnsTrue. Inside the body, we just want to compare two movies with the same titles…

Contents