https://github.com/matoilic/gulp-browserstack
Start and stop SSH tunnels to BrowserStack in your Gulp pipeline.
https://github.com/matoilic/gulp-browserstack
Last synced: 8 months ago
JSON representation
Start and stop SSH tunnels to BrowserStack in your Gulp pipeline.
- Host: GitHub
- URL: https://github.com/matoilic/gulp-browserstack
- Owner: matoilic
- Created: 2015-06-29T20:01:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-06T17:25:53.000Z (almost 10 years ago)
- Last Synced: 2024-10-19T11:11:10.353Z (about 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Gulp BrowserStack
Start a SSH tunnel before you run your e2e tests in Gulp and tear it down properly afterwards. See the [BrowserStackTunnelWrapper](https://github.com/pghalliday/node-BrowserStackTunnel) documentation for an overview of the available options.
##Example
```javascript
// 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`.