Monday, July 26, 2010

Insight of the day

Insight of the day

Prologue:
My New Year's resolution in july : no more feature releases without unit tests.

So , I was doing an Active Record kind of entity on a project at work and with my resolution in place I'm hard at work. The funny thing is that I'm learning the Mockit framework.

The first thing I'm realizing : hey I'm learning the api by hard - and the corporate world says there's no value added with unit testing.

I'm not really really sure you need to mock the exact api but hey at least I'm following what I believe in.

Do you do that ?
DO YOUR UNIT TESTS!!!!!!!!
PS:
If I can make hudson build the unit tests and someone else in my team will fail the build my boss is going to buy me a beer.
Double added bonus.

1 comment: