Skip to content

mateusmirandaalmeida/webpack-nightwatch-plugin

 
 

Repository files navigation

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'
  })
)

About

Webpack plugin, Browser Automation with Nightwatch.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%