19787 shaares
136 private links
136 private links
For many, the idea of unit testing JavaScript applications seems difficult or unnecessary. ...
The good news is that dozens of JavaScript test frameworks, libraries, and test runners help solve the problems. These make implementing unit tests for your JavaScript applications quick, reliable, and easy to maintain. The bad news is, there are dozens of JavaScript frameworks, libraries, and test runners to choose from. Selecting a JavaScript test framework can be daunting.
In this article, I discuss some of the basics for writing JavaScript unit tests, some of the concepts behind test-driven development (TDD) and behavior-driven development (BDD). Then, you can apply that information to writing and running JavaScript unit tests with Jasmine.