I spent all day trying to setup test setup for angularJS. I had generated angular app with yo angular and then I modified grunt conf file like so:
// Test settings
karma: {
e2e: {
configFile: 'karma-e2e.conf.js'
},
unit: {
configFile: 'karma.conf.js'
}
}
Carma config file: https://gist.github.com/TrkiSF2/10919353
karma e2e conf file: https://gist.github.com/TrkiSF2/10919425
The unit tests work (grunt karma:unit) but I don't know how to setup e2e tests and after all day I am pretty desperate.
First I should setup a protractor right? (plus I would probably like to setup phantomJs as well? so the browser will not open always)
I had reinstalled node today few times...
I came here: https://github.com/angular/protractor/blob/master/docs/getting-started.md
and tried to install protractor
npm http 304 https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/lru-cache
/home/trki/npm/bin/protractor -> /home/trki/npm/lib/node_modules/protractor/bin/protractor
/home/trki/npm/bin/webdriver-manager -> /home/trki/npm/lib/node_modules/protractor/bin/webdriver-manager
[email protected] /home/trki/npm/lib/node_modules/protractor
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected]
And from this point I am lost. What to do next?
webdriver-manager update
zsh: command not found: webdriver-manager