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.

What is test-driven development?

What is test-driven development?

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

Start my 1-month free trial

What is test-driven development?

- Test-driven development is a way of structuring your development process. Instead of writing your code first and leaving the testing to the QA Department, which if you're a freelancer, is just you, you write the test first, and then, you start building out your code to make sure that those tests pass. Now, here's the great part. Your entire project is tested, so when you get to that thousandth line of code, you know that your entire app is working just fine. A test-driven approach isn't going to catch all of your bugs or potential crashes. What it will do is reduce the number of bugs you have and it'll make sure that when those few bugs slip by your test pop up, you know exactly where and what code is being affected. In the mid-1990s, Kent Beck introduced extreme programming to the world of Software Development. One of its 12 rules lead to the methodology behind test-driven development. Essentially, the rule is three-fold. Programmers need to write tests. They need to make sure that…

Contents