Yeoman Testing With Coffeescript
Matthew Seeley and I have been building an AngularJS app using Yeoman. So far it's been great! Yeoman gives you Grunt tasks, AngularJS generators, and Bower package management right out of the box. In addition, it gives you a base configuration for running Angular tests with Karma.
Unfortunately we ran into a situation that brought our productivity to a screeching halt. Our tests written in CoffeeScript were not executing. After a some investigation, we found found a solution to this problem.
A configuration file is used to tell Karma how to execute the test suite:
By default karma.conf.js has a section which describes the files that load for the test execution. It looks something like this: