UNPKG

@testim/testim-cli

Version:

Command line interface for running Testing on you CI

41 lines (32 loc) 1.41 kB
name: gulp-webdriver category: plugins tags: guide title: WebdriverIO - gulp-webdriver --- gulp-webdriver [![Build Status](https://travis-ci.org/webdriverio/gulp-webdriver.svg?branch=master)](https://travis-ci.org/webdriverio/gulp-webdriver) [![Join the chat at https://gitter.im/webdriverio/gulp-webdriver](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/webdriverio/gulp-webdriver?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ============== > gulp-webdriver is a gulp plugin to run selenium tests with the [WebdriverIO](http://webdriver.io) testrunner ## Install ```shell npm install gulp-webdriver --save-dev ``` ## Usage You can run WebdriverIO locally running this simple task: ```js gulp.task('test:e2e', function() { return gulp.src('wdio.conf.js').pipe(webdriver()); }); ``` gulp-webdriver makes the wdio testrunner easy accessible and allows you to run multiple config files sequentially. If desired you can pass additional arguments to the wdio command to specify your test. You can find all available options [here](http://webdriver.io/guide/testrunner/gettingstarted.html) or by executin `$ wdio --help` (if you have WebdriverIO installed globally). ```js gulp.task('test:e2e', function() { return gulp.src('wdio.conf.js').pipe(webdriver({ logLevel: 'verbose', waitforTimeout: 10000, reporter: 'spec' })); }); ```