rod mclaughlinCoffeescript testing with Mocha (07 aug 15)
Javascript is one of the most important programming languages in the world. But unlike SQL, or Ruby, it's poorly documented. For some reason, the people who write about Javascript libraries nearly always get it wrong, or miss out a few 'obvious' steps. The language Coffeescript, which generates Javascript, is an exception to the rule - it and its documentation are written by literate people. But it is difficult to find out how to write tests in Coffeescript. All the information is years out of date. I started on this page: http://code.tutsplus.com/tutorials/better-coffeescript-testing-with-mocha--net-24696and, after a couple of days of googling, experimenting, and outright guesswork, ended up with this:
Back
|