New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

protractor-webpack

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protractor-webpack

Synchronizes Protractor test runs with serving a Webpack bundle

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

protractor-webpack

Installation

npm install --save-dev protractor-webpack

Programatic Usage

The run function will serve the Webpack bundle and run the Protractor tests. It requires two arguments: the Webpack config as a JSON object and the path to the Protractor config.

var webpackConfig = require('./webpack.config.json');
var runner = require('protractor-webpack');

runner.run('./protractor.conf.js', webpackConfig);

CLI Usage

TODO - Add documentation

Credit

This project is heavily influenced by the work done in angular-cli. They use the webpack-dev-server to serve the application for test and call to the Protractor launcher directly to execute the tests. To wire everything together, they simply create a callback function to launch the protractor test and synchronize it with the webpack build by passing it is a plugin on 'done'.

The issue with angular-cli is that it blindly refuses to build an ejected project, and rather than allow for running the tests from the webpack config.

Keywords

FAQs

Package last updated on 15 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc