Skip to content

A simple plugin which to run cypress after build and stop the test on failure

Notifications You must be signed in to change notification settings

Arver1/cy-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cy-webpack-plugin

A simple plugin which to run cypress after build and stop the test on failure npm npm

Installation

yarn add -D cy-webpack-plugin

img

Usage

const CyWebpackPlugin = require('cy-webpack-plugin');

module.exports = {
  plugins: [
    new CyWebpackPlugin()
  ]
}

// You don't need to forgot about 

 afterEach(function () {
         if (this.currentTest.state === 'failed') {
             throw Error();
         }
     });

Options

Name Default Description
countBuild 1 Run cypress after success build client, or you can pass 2(that mean run after build client and server
headed true If you want to see a cypress in window

About

A simple plugin which to run cypress after build and stop the test on failure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published