Skip to content

Instantly share code, notes, and snippets.

@segovia94
Created June 28, 2018 23:50
Show Gist options
  • Save segovia94/683310daff823cf37ec95d53d969745a to your computer and use it in GitHub Desktop.
Save segovia94/683310daff823cf37ec95d53d969745a to your computer and use it in GitHub Desktop.
Bitbucket Pipelines Cypress e2e testing recipe (used to test project built with Nuxt.js)
# Use the official cypress docker container.
image: cypress/base:8
pipelines:
default:
- step:
caches:
- node
- npm
- cypress
script:
- npm ci
- npm run build # Compile the site
- npm run start & # Run the local server in the background
- npx wait-on http://localhost:3000 # Wait for the local server to start with https://www.npmjs.com/package/wait-on
- npx cypress run --config video=false # Disable video recording
definitions:
caches:
npm: ~/.npm
cypress: ~/.cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment