Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

protractor-fail-fast

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protractor-fail-fast

Allow Protractor tests to "fail-fast", exiting on the first failure instead of running all tests no matter what. This can save a great deal of time as Protractor tests are typically slow and expensive.

  • 3.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.1K
decreased by-6.63%
Maintainers
1
Weekly downloads
 
Created
Source

protractor-fail-fast

Allow Protractor tests to "fail-fast", exiting on the first failure instead of running all tests no matter what. This can save a great deal of time as Protractor tests are typically slow and expensive.

This Protractor plugin is effectively a wrapper around jasmine-fail-fast.

Install

yarn

yarn add protractor-fail-fast

npm

npm install protractor-fail-fast

Usage

Enable protractor-fail-fast as a plugin in the Protractor configuration file using the package option:

plugins: [{
  package: 'protractor-fail-fast',
}]

Fail file

In order to facilitate communication between the test instances (and for the lack of a better known option), protractor-fail-fast writes to an empty file, .protractor-failed, whenever a test fails. The presence of this file triggers all other test instances to skip the rest of their tests.

The init and clean methods will remove this file, but it may still remain if, for example, the postResults Protractor hook isn't executed due to an aborted test run. For that reason, it's recommended to add .protractor-failed to .gitignore.

FAQs

Package last updated on 14 Mar 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