Cross-posted from the Formidable Labs blog.
A few weeks ago, I presented a talk on “Making JavaScript Tests Fast, Easy, & Friendly” at the CascasdiaJS 2014 conference in Portland, OR. The talk looks beyond the traditional technical details of wiring up test frameworks and focuses on creating processes and environments that help developers actually write and run application tests.
Making the Tests Faster, Easier, Friendlier
The motivation for the talk comes from our work with developer teams of various sizes at Formidable Labs, where we have observed the challenges, successes, and failures of test development as a part of the overall development workflow. Essentially, these experiences can be culled down to the following:
- If tests aren’t easy to write, then developers won’t write them.
- If tests aren’t fast to run, then developers won’t run them.
- If the organizational culture isn’t test-friendly, then developers won’t write or run the tests (and they’ll probably be unhappy to boot).
The talk dives into some tips and tricks to address these three broad goals as follows: