From the course: Ruby: Testing with RSpec
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Why software tests are important - Ruby Tutorial
From the course: Ruby: Testing with RSpec
Why software tests are important
- In this introduction, I think it's fair for us to ask the question, Why are software tests important? To be honest, it's difficult to have a career as a professional developer if you don't write tests. Why is that? First, let's look at the reasons that you should not write tests. Now, that may sound, kind of, intuitive and against what I'm trying to tell you here but there are only two reasons and I think that it's helpful to get them up-front so that we can weigh them against the reasons that you should write tests. The first reason is simply that writing tests requires more time. That's pretty obvious, right? It takes time to write that code that's going to test your other code. Time is money. Now, that money might be your client's money, your employer's money, or maybe it's your own money. Maybe it's just time that you spend writing tests that could be spent doing something else. Something else that makes money for you or something else that's just more fun than writing tests…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.