wt-protractor-runner
What's that for?
This module is here to help you with two things:
- Run protractor from gulp with just one line of code.
- Run a bunch or protractor instances sequentially for local cross-browser testing or using cloud platforms like Browserstack.
Run protractor
As you may know, there's already gulp-protractor that allows you to use a gulp plugin in order to run protractor. Its readme also shows how to run protractor without a gulp plugin but it needs some copy/pasting. wt-protractor-runner will help you avoid this code duplication and run your tests in few seconds.
Install wt-protractor-runner
Gulpfile.js:
var protractorRunner = ; gulp;
Run:
gulp test-e2e
Run cross-browser tests with protractor.
Just do the same as above and give multiple configurations to protractor.
var protractorRunner = ; var specPattern = __dirname + '/test/e2e/*.js'; gulp;
To make this more readable, you should use wt-protractor-utils.
Without gulp.
callback;