Unit testing as the name implies is about testing individual units of code. Unit tests try to answer questions such as "Did I think about the logic correctly?" or "Does the sort function order the list in the right order?"
A small, short and ugly step by step:
sudo npm install -g generator-karma
sudo npm install grunt-karma
sudo npm install -g node-gyp
npm install grunt-karma --save-dev
npm install karma-jasmine --save-dev
npm install karma-phantomjs-launcher --save-dev
- Configure karma.conf.js (http://nathanleclaire.com/blog/2013/12/13/how-to-unit-test-controllers-in-angularjs-without-setting-your-hair-on-fire/)
- Download files (https://code.angularjs.org/1.0.6/)
I know that it's short, but every good story has a humble beginning... follow us to see the second part!