Skip to content

nightwatchjs/nightwatch-plugin-browserstack

Repository files navigation

@nightwatch/browserstack

Nightwatch.js Logo

Official Nightwatch plugin for integration with the BrowserStack.

npm i @nightwatch/browserstack --save-dev

Usage:

Update your Nightwatch configuration and add the plugin to the list:

module.exports = {
  plugins: ['@nightwatch/browserstack'],
  
  // browserstack plugin settings...
  '@nightwatch/browserstack': {
    browserstackLocal: true, // set true to manage browserstack local tunnel. Defaults to false.
    browserstackLocalOptions: {
      // other browserstack local options
    },
    test_observability: {
      enabled: true, // set true for enabling browserstack test observability
      user: '${BROWSERSTACK_USERNAME}',
      key: '${BROWSERSTACK_ACCESS_KEY}',
      projectName: "BrowserStack Samples",
      buildName: "browserstack build"
    }
  },

  // other nightwatch settings...
}

License

MIT