Skip to content

Start and stop SSH tunnels to BrowserStack in your Gulp pipeline.

Notifications You must be signed in to change notification settings

matoilic/gulp-browserstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Gulp BrowserStack

Start a SSH tunnel before you run your e2e tests in Gulp and tear it down properly afterwards. See the BrowserStackTunnelWrapper documentation for an overview of the available options.

##Example

// running protractor tests on browserstack

var browserStack = require('gulp-browserstack');

gulp
    .src('/test-e2e/**/*Test.js')
    .pipe(browserStack.startTunnel({
        key: 'YOUR_ACCESS_KEY'
    }))
    .pipe(g.protractor.protractor({
        configFile: 'config/protractor-browserstack-config.js'
    }))
    .pipe(browserStack.stopTunnel());

You will find the access key in your BrowserStack account details.

##Running the test

The test runner expects to find the API key and the BrowserStack username in the environment variables BROWSERSTACK_KEY and BROWSERSTACK_USER.

About

Start and stop SSH tunnels to BrowserStack in your Gulp pipeline.

Resources

Stars

Watchers

Forks

Packages

No packages published