Lessons:17Length:1.8 hours
• Overview
• Transcript

# 2.5 Setup and Teardown Functions

Duplication of code is one of the easiest ways to create bugs! This is even true of your test code. In XCTest there are two special functions that you can override to help with avoiding code duplication. These functions are setUp and tearDown and you'll learn all about them in this lesson.