Skip to content
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.

Latest commit

 

History

History
34 lines (28 loc) · 831 Bytes

README.md

File metadata and controls

34 lines (28 loc) · 831 Bytes

Nightwatch.js BrowserStack status update

Update BrowserStack session status based on Nightwatch.js test results.

Install

npm install nightwatch-browserstack

Usage

module.exports = {
  beforeEach: function (browser, done) {
    if (this.test_settings.selenium_host === 'hub.browserstack.com') {
      return require('nightwatch-browserstack').storeSessionId(browser, done)
    }
    done()
  },
  afterEach: function (browser, done) {
    if (this.test_settings.selenium_host === 'hub.browserstack.com') {
      return require('nightwatch-browserstack').updateStatus(browser, done)
    }
    done()
  }
}

License

Released under the MIT license.

Author

Sebastian Tschan