Nightwatch.js module to update BrowserStack session status for failed tests.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
README.md
index.js
package.json

README.md

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