Skip to content


TMOTB – Test more often than BryanL

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 the fucking time. Now I’m curious about something. How often you do you test?

image provided by twictur.es | original tweet here

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.

<p>I test rake tasks</p>


<p>I test my Rails initializers if I can</p>


<p>Sometimes I write tests for test code.</p>


<p>I truly spend more time writing tests than I do writing implementation code.</p>


<p>I used to test my associations, but I&#8217;ve stopped due to learning that you should test for expected behavior and not how it is implemented.</p>


<p>I test file uploads.</p>


<p>I test file downloads.</p>


<p>I test stuff that happens on the filesystem (my method sucks, but it does work)</p>


<p>Sometimes I write additional tests for projects when I don&#8217;t quite understand how they work</p>


<p>I&#8217;ve developed a style for writing tests to demo code</p>


<p>I have some test code for creating acceptance tests from <a href="www.pivotaltracker.com/">Pivotal Tracker</a>  stories.</p>


<p>So, what have you?  How often do you test?</p>

Posted in Uncategorized.