Tutorial from http://www.yearofmoo.com/2013/01/full-spectrum-testing-with-angularjs-and-karma.html