This is an example repo to run cypress alongside an integration between Cypress, Mochawesome Report, Slack, GCP Triggers and Bucket.
- run "npm i";
- check cypress/lib/slack.js and set up proper IDS in line 71;
- check cypress.config.js and set up your data in lines 19, 20, 21;
- check .env-example, copy and create your own .env (don't worry about the envs with local-testing in them, they need to be set up in gcp);
- get a slack channel webhook to put it inside .env and properly set the slack channel;
- check devops/ci/example/cloudbuild.yaml and set up your instances and bucket folders names;
- setup your gcp environment properly (remember to setup the devops/ci path and the variables too, but keep in mind that some of them don't have to be explicit, check gcp variables documentation.);
How to run configs locally for test porpuses after configuration:
- run cypress however you'd like
- run "npm run merge-reports" to unite every spec in one report
- run "npm run generate-html" to create a html file containing the results
- run "npm run screenshotPage-generator" to create a html file containing the printscreens (if they exist)
- run "npm run slack-notify" to send the message through the configured webhook/slack channel.
- enjoy your integration :D