This post originated from an RSS feed registered with Ruby Buzz
by Bryan Liles.
Original Post: TMOTB - Test more often than BryanL
Feed Title: Smarticus
Feed URL: http://smartic.us/feed/atom.xml
Feed Description: Ramblings of a ruby hacker
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Bryan Liles
Latest Posts From Smarticus
Advertisement
For quite some time, I’ve been asking you
how often you test your codes , and I’ve also been encouraging you to test all time fucking time . Now
I’m curious about something. How often you do you test?
Do you test more often than I do? I’ll share with you how often I
test, and I’ll let you tell me if I’m doing too much or not enough.
I test rake tasks
I test my Rails initializers if I can
Sometimes I write tests for test code.
I truly spend more time writing tests than I do writing implementation code.
I used to test my associations, but I’ve stopped due to learning that you should test for expected behavior and not how it is implemented.
I test file uploads.
I test file downloads.
I test stuff that happens on the filesystem (my method sucks, but it does work)
Sometimes I write additional tests for projects when I don’t quite understand how they work
I’ve developed a style for writing tests to demo code
I have some test code for creating acceptance tests from Pivotal Tracker stories.
So, what have you? How often do you test?
Read: TMOTB - Test more often than BryanL