1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-03 17:59:28 +02:00

- Refactored e2e tests in separated test suites.

- `gulp protractor` now accepts a `--suite name` flag.
- Removed warning bug in ChromeDriver.
- ControlPage test now kicks the device.
This commit is contained in:
Gunther Brunner 2014-08-26 15:59:44 +09:00
parent 3a9b193f68
commit a08d9e26f0
10 changed files with 48 additions and 27 deletions

View file

@ -60,9 +60,16 @@ gulp.task('webdriver_update', protractor.webdriver_update)
gulp.task('webdriver_standalone', protractor.webdriver_standalone)
gulp.task('protractor', function (callback) {
var args
var suite = gutil.env.suite
if (typeof suite === 'string') {
args = ['--suite', suite]
}
gulp.src(["./res/test/e2e/**/*.js"])
.pipe(protractor.protractor({
configFile: protractorConfig
configFile: protractorConfig,
args: args
}))
.on('error', function (e) {
console.log(e)