Skip to content

appnexus/gulp-wimp

Repository files navigation

gulp-wimp

Run Selenium WebDriver tests faster using parallel instances of Mocha.

Build Status

Branch Build Status Code Climate Version
master build status code climate 0.0.1

Install

npm install gulp-wimp

##Usage ###Basic Gulp Task ####Gulpfile

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

gulp.task('test', function () {
  var s = gulp.src('tests/*.js', {read: false});
  s.pipe(
    wimp({
      concurrency: 3
    })
  );
});

####Test Files

var assert = require('assert');

describe('Promise-enabled WebDriver', function () {

  describe('injected browser executing a Google Search', function () {

    it('performs as expected', function (done) {
      var searchBox;
      browser.get('http://google.com')
      .elementByName('q').type('webdriver')
      .elementByName('q').getAttribute('value')
      .then(function(val){
        assert.equal(val, 'webdriver');
      }).then(done, done);
    });

  });
});

About

WebDriver + Mocha + Parallel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published