Before running the tests you will need to run the following steps.
-
install nodejs - http://nodejs.org/download/
-
install grunt - "sudo npm install grunt-cli -g"
-
install karma - "sudo npm install karma -g"
-
install protractor - "sudo npm install protractor -g"
-
in terminal navigate to the root directory of git repo for the Usergrid Admin Portal
-
run npm install in your terminal - "npm install"
-
run grunt in your terminal - "grunt", this will also run the tests, if you want to run the tests independently follow the next steps
-
run karma in your terminal - "karma start tests/karma.conf.js"
-
this will open a browser window where you can debug
-
if you want to run the e2e tests open a terminal, navigate to the root and run "protractor ./tests/protractorConf.js"
for more info see http://karma-runner.github.io/0.10/index.html or https://github.com/angular/protractor