Chapter 10. Driving with tests
This chapter covers
- Understanding unit tests
- Dealing effectively with dependencies inside tests
- How to test asynchronous programs
- How to test behavior
- Test suites and how to automate your test suite
I saw the best minds of my generation destroyed by madness.
From Howl by Allen Ginsberg
You have to solve harder problems in CoffeeScript today than most people had to solve in JavaScript in the early days. Back then, JavaScript was used to enhance browser applications. Today you’re writing entire applications in CoffeeScript. Writing more of the program means dealing with more of the problems. Writing tests for your programs can help with these problems and save you from losing your mind. Writing the tests ...
Get CoffeeScript in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.