Socket
Socket
Sign inDemoInstall

cypress-smokify

Package Overview
Dependencies
390
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cypress-smokify

Cypress plugin that automatically generates smoke-like tests from a project's cypress test base


Version published
Maintainers
1
Created

Readme

Source

cypress-smokify

Cypress plugin that automatically generates smoke-like tests from a project's cypress test base. By providing the percentage of tests to skip, cypress-smokify will pick file-specific arbitrary tests to run. This can be useful when a project's test base grows to such an extent that it gets cumbersome to run all tests everytime when pushing code for example. However, all tests should always be run before deploying any code.

Install & usage

  1. Install the package
npm install cypress-smokify
  1. Add it into cypress/plugins/index.js
const smokify = require('cypress-smokify')

module.exports = (on, config) => {
  // `on` is used to hook into various events Cypress emits
  // `config` is the resolved Cypress config
  on('file:preprocessor', smokify(config))
}
  1. Specify the % (value between 0-1) of tests you want to skip
cypress run --env smokify=0.5 --config baseUrl=http://X:Y/ 

Run 1:

Run 1

Run 2:

Run 2

Keywords

FAQs

Last updated on 20 Nov 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc