1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00

-Add shell e2e test.

-Add parallel multi browser protractor configuration.
-Add screenshot reports.
-Add fail fast helper.
This commit is contained in:
Gunther Brunner 2014-08-26 23:37:50 +09:00
parent 755502a28e
commit b1afa8076c
6 changed files with 100 additions and 6 deletions

View file

@ -10,7 +10,6 @@ var gettext = require('gulp-angular-gettext')
var jade = require('gulp-jade')
var clean = require('gulp-clean')
var protractor = require("gulp-protractor")
var protractorConfig = './res/test/protractor.conf'
var karma = require('karma').server
var karmaConfig = '/res/test/karma.conf.js'
var stream = require('stream')
@ -60,6 +59,8 @@ gulp.task('webdriver-update', protractor.webdriver_update)
gulp.task('webdriver-standalone', protractor.webdriver_standalone)
gulp.task('protractor', function (callback) {
var protractorConfig = './res/test/protractor.conf'
var args = []
if (typeof gutil.env.suite === 'string') {
args.push('--suite')
@ -70,6 +71,10 @@ gulp.task('protractor', function (callback) {
args.push('debug')
}
if (gutil.env.multi) {
protractorConfig = './res/test/protractor-multi.conf'
}
gulp.src(["./res/test/e2e/**/*.js"])
.pipe(protractor.protractor({
configFile: protractorConfig,