the term "pragmatic unit testing" is new to me... what other theories/approaches/frameworks/etc is similar/against/complementary/etc to pragmatic programming??? thanks... ali
posted 11 years ago
Pragmatic Unit Testing is our way of approaching unit testing, that is, it is in keeping with the ideals we put forth in The Pragmatic Programmer. We don't explictly say "here's where you use the DRY principle and here's where you apply "The Cat ate my source code" or that sort of thing, but all of our founding principles are in play. With testing especially, there seems to be a lot of dogma out there -- witness the near-religious ferver with which people argue the relative merits of one assert per method or multiple asserts per method. We try to avoid any dogmatic approach. Bennie Goodman, the famous bandleader from the 1930's, summed up critical analysis of jazz music this way: "if it sounds good, it IS good." Same thing applies here.