iOS App Development: Test-Driven Development
2h 10mIntermediate2018-03-14
Authors

Harrison Ferrone
Software Engineer, Game Developer, and Creative Technologist
Course details
Test-driven development (TDD) makes us more pragmatic, efficient, and creative software developers. TDD is especially critical in the mobile world, where a quality codebase isn't an option; it's a requirement to launch. This course aims to better equip iOS developers with a model for developing strong, scalable, and tested code from the very first line. Start with some test-driven theory, progress to the fundamentals, and then build a small application that will put everything you learned to good use. Along the way, find out how to write your first unit test using Xcode and Swift, and conduct interface testing specifically for table views. Instructor Harrison Ferrone helps you understand TDD theory and practice, enabling you to write coherent tests that reveal the true weaknesses in your code long before it ever goes to production.
Learning objectives
What is test-driven development?
Creating and expanding a data model
Creating a manager class
Testing class methods
Checking for duplicates
Testing table views
Mocking cells
Testing cell selection
Assembling the app
Learning objectives
What is test-driven development?
Creating and expanding a data model
Creating a manager class
Testing class methods
Checking for duplicates
Testing table views
Mocking cells
Testing cell selection
Assembling the app
Skills covered
SwiftiOS DevelopmentiOSSoftware TestingDevOps FoundationsMobile DevelopmentAppleDevOpsSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know
- 03 - Using the exercise files
1. Foundation and Theory
- 04 - What is test-driven development
- 05 - Why test-driven development
- 06 - Unit tests explained
- 07 - Development techniques
- 08 - Planning and design
2. Getting Started
- 09 - Demo - What we're building
- 10 - Project setup
- 11 - Test case breakdown
- 12 - Create a data model
- 13 - Expand the data model
3. The Manager Class
- 14 - Create the movie manager
- 15 - Add manager functionality
- 16 - Check off movies
- 17 - Compare movies
- 18 - Wrap up the movie manager
4. TableView Testing
- 19 - Interface testing setup
- 20 - Data source and delegate setup
- 21 - TableView section one tests
- 22 - TableView section two tests
- 23 - Mocking the TableView cell
- 24 - Configure the TableView cell
- 25 - Test cell selection
5. Finishing Touches
- 26 - Assemble the app
- 27 - Code coverage
Conclusion
- 28 - Next steps
Related courses
Related learn paths
- Improve Your iOS Development Skills
- Prepare for the MTA: Software Development Fundamentals Exam (98-361)
- Elevating C# Skills: Building Robust Applications
- Advance Your JavaScript Skills
- Advance Your Skills as a Django Developer
- Get Started with iOS App Development
- Become a Blockchain Developer
- Improve Your Xcode Skills