adequately good

decent programming advice

written by ben cherry



posts by year 2009 2010 2011

all posts filed under testing

Writing Testable JavaScript

The engineering culture at Twitter requires tests. Lots of tests. I haven’t had formal experience with JavaScript testing before Twitter, so I’ve been learning a lot as I go. In particular, a number of patterns I used to use, write about, and encourage have turned out to be b...

AltStyle によって変換されたページ (->オリジナル) /

Spying Constructors in JavaScript

When writing unit-tests for code, a common technique is spying, where you set expectations on a method’s invoc...