Run Protractor with a single Gulp task
问题 Is there a way to run e2e tests using Protractor and Gulp in a single task? Right now, in order to run e2e tests, I have to open 3 separate shells and run the following: webdriver-manager update webdriver-manager start npm start (which runs the app server) protractor protractor.conf.js (in a separate window) There must be a simpler way of running these tests. Any thoughts? 回答1: Here is a solution that can work var protractor = require("gulp-protractor").protractor; var spawn = require('child