I am working on a mobile app. I am using ionic framework with angularjs. So I am programming this app using web technologies. My issues are regarding to the tests. I have unit and end to end (e2e) tests in my application. Look at my script section in my package.json file:
"scripts": {
"test": "karma start test/karma.conf.js",
"test-single-run": "karma start test/karma.conf.js --single-run"
}
I am able to run my unit tests executing the command in a git console:
npm run test
And my e2e tests executing two commands in two git consoles:
ionic serve (to run my app)
protractor test/protractor-conf.js (to run my e2e tests)
I have two issues here:
I am not able to add a script command to my package.json in order to simplify the protractor command. In the same way of my karma commands for unit testing. I have tried this:
"e2e" : "protractor test/protractor-conf.js"
In order to run "npm run e2e", But I received this error:
- The second issue: I would like to create a build (or pipeline) for all my tests. I mean, to have a command like "rake" in ruby. Where I can run my units and e2e tests through it. This could be very useful in order to save time in the development process and to avoid the fact of forgetting to run my e2e tests.
webdriver-manager update
. Although it does seem odd that it works when you run them directly but not when using an npm script. – tehbeardedone"e2e:run-all-tests": "protractor ProtractorTests/protractor.conf.js"
. What is the location of the supposed missing .jar? – tehbeardedone