Run your angular protractor tests with gulp
First, install gulp-protractor
AND protractor
as a development dependency:
npm install --save-dev gulp-protractor protractor
Then, add it to your gulpfile.js
:
var protractor = require("gulp-protractor").protractor;
gulp.src(["./src/tests/*.js"])
.pipe(protractor({
configFile: "test/protractor.config.js"
}))
.on('error', function(e) { throw e })
You have to update and start a standalone selenium server. Please read the offical instructions. You can use the build in webdriver snippet.
var webdriver = require("gulp-protractor").webdriver;
gulp.task('webdriver', webdriver);
Type: String
Default: null
The path to your protractor config
Type: Array
Default: []
Arguments get passed directly to the protractor call Read the docs for more information
Type: Boolean
Default: false
Runs protractor with the debug flag Protractor Debugging documentation