markelog / gulp-wdio

Better gulp plugin for webdriver.io
MIT License
4 stars 0 forks source link

Add saucelabs support? #4

Open markelog opened 7 years ago

markelog commented 7 years ago

Do we need it?

ianoroceo commented 5 years ago

I guess the answer is Yes :) I'm using saucelabs. the test runs in saucelabs but it doesnt pass the testname and status

var wdio = require('gulp-wdio');

//running test on saucelabs
gulp.task('sauce-suites', function () {
    return gulp.src('wdio.conf.js')
        .pipe(wdio({
                wdio: {
                    services: ['sauce'],
                    user: config.sauceUser, //process.env.SAUCE_USERNAME,
                    key: sauceKey,//process.env.SAUCE_ACCESS_KEY,
                    region: 'us',
                    sauceConnect: true,
                    suite: argv.suites,
                }
            })
        )
        .once("error", function () {this.once("finish", () => process.exit(1));});
});