That’s not to say we had no tests – there were several selenium tests that tested functionality at a high level. The problem however was making the required changes was going to be a time consuming (and somewhat terrifying) process. The selenium tests provided a very slow testing feedback loop and debugging a large closure comes with it’s own challenges. If it’s scary changing your production code, then you’re doing something wrong.
Modularity and Dependency Management
Fast Unit testing with Phantom.js
Functional Testing with Selenium