node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

gulp-jasmine-webdriverio

gulp-jasmine-webdriverio

Build Status License Code Climate Test Coverage

gulp-jasmine-webdriver is a Gulp plugin to run Selenium tests with Jasmine and WebdriverIO Much of the source code drived from the excellant gulp-webdriver by christian-bromann, only difference is jasmine as the test framework as opposed to Mocha by the later.

The orignal intention is to search for the best gulp task which supports Webdrvercss based css regression testing. The gulp-webdriver is based on Mocha test framework while our expertise based on jasmine. So, I've adopted the source code to work with jasmine test framework.

Install

$ npm install --save-dev gulp-jasmine-webdriverio

Usage

var gulp = require('gulp');
var jasmineWebdriverio = require('gulp-jasmine-webdriverio');
 
gulp.task('default', function () {
    return gulp.src('src/file.ext')
        .pipe(jasmineWebdriverio())
        .pipe(gulp.dest('dist'));
});
var gulp = require('gulp');
var jasmineWebdriverio = require('gulp-jasmine-webdriverio');
 
gulp.task('default', function () {
    return gulp.src('src/file.ext')
        .pipe(jasmineWebdriverio({
            configFile: './wdio.conf.js',
            args: {
                logLevel: 'log'
                ,ngRoot: 'html' // main application selector
            }
        }))
        .pipe(gulp.dest('dist'));
});

License

MIT © Senthanal Sirpi Manohar