# webpack-nightwatch-plugin

> Webpack plugin, Browser Automation with Nightwatch.js

Latest version **1.0.0** (published 2016-10-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-nightwatch-plugin
pnpm add webpack-nightwatch-plugin
yarn add webpack-nightwatch-plugin
bun add webpack-nightwatch-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-10-30 |
| First published | 2016-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Mike wi2 |
| Maintainers | wi2 |
| Keywords | webpack, plugin, Nightwatch |

## Links

- npm: https://www.npmjs.com/package/webpack-nightwatch-plugin
- Repository: https://github.com/wi2/webpack-nightwatch-plugin
- Homepage: https://github.com/wi2/webpack-nightwatch-plugin#readme
- Issues: https://github.com/wi2/webpack-nightwatch-plugin/issues
- npm.io page: https://npm.io/package/webpack-nightwatch-plugin

## Dependencies (2)

- [nightwatch](https://npm.io/package/nightwatch.md) ^0.9.8
- [child_process](https://npm.io/package/child_process.md) ^1.0.2

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-10-30

## README

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

---
_Source: https://npm.io/package/webpack-nightwatch-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
