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

Nightwatch.js module to update BrowserStack session status for failed tests.

Notifications You must be signed in to change notification settings

blueimp/nightwatch-browserstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Nightwatch.js module to update BrowserStack session status for failed tests.

Resources

Stars

Watchers

Forks

Packages

No packages published