Created
June 28, 2018 23:50
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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