Testing in Xcode: Unit Testing, UI Testing, and Code Coverage

Video description

Learn automatic testing in Xcode. Start by creating a simple test app that intentionally crashes in given scenarios. Then review the code to find obvious bad practices and issues. Discover why unit testing is important and perform a simple unit test. Work with test cases before adding functionality. Then increase code coverage and learn why it's important. Finally work with different parts of the app to test specific functionality. 

What You'll Learn
  • Set up different UI tests for testing different parts of an app
  • Perform simple unit test cases in a project
  • Use test cases before adding functionality to ensure quality apps

Who This Video Is For

Professional developers or experienced programmers who want to incorporate best practices for testing their apps before publishing them.

Table of contents

  1. Overview 00:01:31
  2. Build the App to be Tested 00:11:03
  3. Unit Testing 00:10:41
  4. Code Structure for Unit Testing 00:10:54
  5. Validating User Input 00:10:33
  6. Handling User Input Forms 00:05:13
  7. Code Coverage 00:05:58
  8. UI testing 00:10:56
  9. Error Labels 00:09:38
  10. Correcting the Test 00:06:34

Product information

  • Title: Testing in Xcode: Unit Testing, UI Testing, and Code Coverage
  • Author(s): Bill Mårtensson
  • Release date: July 2019
  • Publisher(s): Apress
  • ISBN: 9781484251928