Unit testing in Ionic


Trying to follow this tutorial, and the author says we should run this commands but I’m not sure which of this are to be run only once, which must be repeated for every unit I want to test or If I have to repeat and install them all everytime I want to unit test ionic. Can someone please help clarify this, which ones must be run once and which ones always:

npm install karma karma-jasmine karma-phantomjs-launcher --save-dev
npm install -g karma-cli
npm install 
bower install angular-mocks --save-dev


All of them are to be run once, these are just setup instructions