gulp-protractor-qa
A gulp plugin to help you avoiding broken Protractor tests due to not found element() selectors.
Obs.: This is a beta version. From now, it's mapping just element selectors by.model() and by.repeater().
This project is for the community, so please: test it, open issues, fork it. Help me make it better!
Install
npm install --save-dev gulp-protractor-qa
Example
var gulp = require('gulp');
var protractorQA = require('gulp-protractor-qa');
Registering the task
gulp.task('protractor-qa', function() {
protractorQA.init({
testSrc : 'test/e2e/**/*Spec.js',
viewSrc : 'partials/*.html'
});
});
Running it
gulp.task('default', ['protractor-qa']);
API
protractorQA(options)
options
testSrc
Type: String
Default: ""
Where the plugin should watch the changes in order to map all the element() index.
viewSrc
Type: String
Default: ""
Where your AngularJS view files are located. Protractor QA will watch the changes in those files to verify if all the element() selectors can be find.
License
MIT © Ramon Victor