Arver1 / cy-webpack-plugin

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 100.0%