From the course: Ruby: Testing with RSpec

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Benefits and disadvantages

Benefits and disadvantages - Ruby Tutorial

From the course: Ruby: Testing with RSpec

Start my 1-month free trial

Benefits and disadvantages

- I hope that the previous example exercise gave you an idea of how test-driven development works. I think the hardest part is remembering to let the test drive every part of development. Hopefully, in the process you'll also notice some of the strengths and weaknesses of practicing TDD. In this movie, I'll give you what I view as being the primary benefits and disadvantages of test-driven development. These reflect a combination of my experiences as well as common feedback from developers who both love and hate TDD. First, let's start with the benefits. The number one benefit of TDD is that it ensures good test coverage. You don't write any code until you already have a test in place. You're guaranteed of having close to 100% test coverage in the process. Verification testing demands less rigorous coverage. So there's a chance that you won't test thoroughly enough or that you might get lazy and not test at all. TDD is thorough and rigorous by design. TDD also requires that we break…

Contents