@bahmutov
Ughh, automatic deploy had a bug 😢
I want to run E2E tests before deploy!
🎉 https://github.com/netlify/build 🎉
module.exports = {
onPrebuild,
onBuild,
onPostBuild
}
// make sure Cypress is installed
// run Cypress tests against "public" folder
build plugin
npm i -D netlify-plugin-cypress
[[plugins]]
# local Cypress plugin will test our site after it is built
package = "netlify-plugin-cypress"
[[plugins]]
# local Cypress plugin will test our site after it is built
package = "netlify-plugin-cypress"
[plugins.inputs]
record = true
[[plugins]]
# local Cypress plugin will test our site after it is built
package = "netlify-plugin-cypress"
[plugins.inputs]
record = true
group = "built site"
tag = "nightly,production"
[[plugins]]
# local Cypress plugin will test our site after it is built
package = "netlify-plugin-cypress"
[plugins.inputs]
spec = "cypress/integration/smoke*.js"
I want to run E2E tests before and AFTER deploy!
module.exports = {
onPrebuild,
onBuild,
onPostBuild,
onPostDeploy
}
// make sure Cypress is installed
// run Cypress tests against "public" folder
build plugin
// run Cypress tests after deployment
@bahmutov