1, Preface:
Just learned the installation and use of grunt, the role of grunt is to let us do not want to do tasks can be automated, and can customize the task, then what is Karma?
Karma is Testcular's new name, in 2012 Google Open source testcular,2013 renamed Karma. Karma is a very mysterious name, representing the fate of Buddhism, karma.
Karma's role is to execute process management tools based on the node. js JavaScript test.
Installation of 2,karma
Because I am the WIN8 system, so you know, and I default you install node. js
- Install KARMA-CLI, open our cmd panel, enter NPM install-g in a random location karma-cli
In this way we will install the karma in our system's Global Directory (C:\USERS\JENNYNJ\APPDATA\ROAMING\NPM\NODE_MODULES\KARMA-CLI), note that the installation of KARMA-CLI is not installed Karma, now online has a tutorial that is directly using the command NPM install-g Karma can be, but I tried many times can not, perhaps the reason for the system, but if the first installation karma-cli, then install karma can be ,
2. Install Karma can actively create a file, with cmd find the new file directory, enter npm install karma can be downloaded from the network Karma
3, run Karma input Karma start
Can be browsed at http://localhost:9876,
Installation of Angularjs--karma