Ruby on Rails testing

Test Driven Development

Test Driven Development January 28, 2018Leave a comment

Test-driven development is a general approach to creating software. You may hear about red-green-refactor cycle which is the essence of TDD. If you are not sure if you have to write tests please take look at this article where I explained why you should do it.

Originally, TDD was a part of extreme programming but it’s now a separated programming technique. Knowledge of this technique is a very common requirement of job offers for software developers.

We can just fit the essence of TDD in three repeatable steps:

1. Write a test for non-existing code and let it fail
2. Write a code for created test and make it pass
3. Refactor code to meet your expectations

and then just repeat with every next class you will be working on.

At the end credits for the author: test-driven development was created by Kent Beck – https://pl.wikipedia.org/wiki/Kent_Beck

Having problems with tests for your Ruby on Rails application?

Hit me on twitter or use contact form and let me know how can I help you!

Download free RSpec & TDD ebook

Do you want to earn more or jump to the next level in your company? Do you know that testing skills are one of the most desired skills? There is only first step: start testing and do it right. My ebook can help you. Subscribe to the newsletter to get a free copy of the book.

Leave a Reply

Your email address will not be published. Required fields are marked *