$ cnpm install test-reload
Reloads Cypress when a given watched file changes
npm install cypress-watch-and-reload
Add to your cypress/plugins/index.js
file
require('cypress-watch-and-reload/plugins')
Add to your cypress/support/index.js
file
require('cypress-watch-and-reload/support')
This plugin opens a WebSocket connection from Cypress to its Node backend. The backend is watching index.html file. Whenever you change and save the index.html file, Cypress will notice and will reload itself, rerunning tests.
MIT license
Copyright 2014 - 2017 © taobao.org |