Explore the many of the advantages you gain when you follow the TDD pattern and how it can enable you to both write code faster and will less defects in your software.
- View Offline
- [Narrator] So what are the real advantages of developing…software using test driven development?…We've looked at some reasons for unit testing…in general before, but as a refresher,…unit testing ensures that code works correctly…now and in the future.…It adds additional documentation into what your code does.…It reduces the chance of bugs or issues.…It improves the ability for you to refactor your code.…And it helps force you to write better design code.…These are the general reasons for unit testing.…
Hopefully you've seen some of these…at this particular point, but let's explore…more specifically what behaviors TDD encourages.…All of the reasons for unit testing are magnified…with test driven development.…It doesn't change any of the core reasons…for unit testing in general.…And all of those reasons sum up to one important point,…the cost to change becomes lower.…The simple fact of the matter is when you have more tests…and more coverage, you have less defects to deal with.…Less defects means less time spent on bugs.…
- Why use unit testing?
- Writing unit tests
- Extending unit tests
- Filtering PHPUnit tests
- Building dummy objects
- Working with data providers
- Writing an exception-based test
- Using TDD tactics
- Using PHPUnit advanced tactics, such as database tests