webpack-nightwatch-plugin

1.0.0 • Public • Published

webpack-nightwatch-plugin

NightWatch config

//test/nightwatch.conf.js

var selenium = require('selenium-server-standalone-jar');
var chromedriver = require('chromedriver');

module.exports = {
  src_folders: ['./test/ui'],
  output_folder: './test/reports',
  selenium: {
    start_process: true,
    server_path: selenium.path,
    log_path: './test/reports',
    cli_args: {
      'webdriver.chrome.driver': chromedriver.path,
      'webdriver.ie.driver': ''
    }
  },
  test_settings: {
    default: {
      launch_url: 'http://localhost:8080/',
      selenium_port: 4444,
      selenium_host: 'localhost',
      desiredCapabilities: {
        browserName: 'chrome',
        javascriptEnabled: true,
        acceptSslCerts: true
      },
    }
  },
  "chrome" : {
    "desiredCapabilities" : {
      "browserName" : "chrome",
      "chromeOptions" : {
        "args" : [
          "use-fake-device-for-media-stream",
          "use-fake-ui-for-media-stream"
        ]
      }
    }
  }
};

Webpack config

//webpack.config.js

config.plugins.push(
  new WebpackNightWatchPlugin({
    url: './test/nightwatch.conf.js'
  })
)

Package Sidebar

Install

npm i webpack-nightwatch-plugin

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • wi2