confession

I have been doing my Ruby on Rails development with zero tests. Yes zero tests. That is major blasphemy in the modern world of Test Driven Development. Sorry, it’s just too complicated for me.

TDD = writing a test before you code a function or feature. Example test: When button is clicked, form is saved. You run the test, it fails obviously cuz you havent made any button or form. Thereafter you go and code up the button and form and stuff, and run the test again and again until it passes. Write next test.

As you go along, you have a library of tests for each minor and major function of your program. Anything you break something, you will know immediately.

The half bad method is to write the tests after you write the code.

The worstest is me who has no tests cause I’m such a noob.

Next time! I promise.

confession

Leave a Reply

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