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

cypress-fail-fast

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-fail-fast

Skip the rest of Cypress tests on first failure

  • 7.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
138K
increased by18.36%
Maintainers
0
Weekly downloads
 
Created

What is cypress-fail-fast?

The cypress-fail-fast npm package is a plugin for Cypress that allows you to stop the test suite execution as soon as a test fails. This can save time during development and continuous integration by not running tests that are likely to fail due to a known issue.

What are cypress-fail-fast's main functionalities?

Stop test execution on first failure

This feature allows you to stop the entire test suite execution as soon as a single test fails. You need to add the plugin to your Cypress configuration file.

module.exports = (on, config) => {
  require('cypress-fail-fast/plugin')(on, config);
};

Command-line option to enable/disable fail-fast

You can enable or disable the fail-fast functionality via command-line options. This is useful for different environments or stages in your CI/CD pipeline.

cypress run --env failFast=true

Fail-fast configuration in cypress.json

You can also configure the fail-fast option directly in your cypress.json file, making it easy to manage the setting across different projects or environments.

{
  "env": {
    "failFast": true
  }
}
0

Keywords

FAQs

Package last updated on 05 Aug 2024

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