Demo of using the Cypress CircleCI Orb
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci chore: test base-10 executor, close #12 Nov 16, 2018
.vscode
cypress make 3 specs Oct 26, 2018
test
.gitignore
.npmrc
README.md
cypress.json
package-lock.json
package.json
server.js

README.md

Cypress CircleCI Orb Example

CircleCI Cypress Dashboard

Cypress CircleCI Orb

Introduction

This project installs npm dependencies, runs Cypress tests and records the output to the Cypress Dashboard on CircleCI. See .circleci/config.yml:

version: 2.1
orbs:
  cypress: cypress/cypress@dev:0.0.1
workflows:
  build:
    jobs:
      # record Cypress tests on the Dashboard
      - cypress/run:
          group: "all tests"
          record: true

Or you can run without recording on the dashboard:

version: 2.1
orbs:
  cypress: cypress/cypress@dev:0.0.1
workflows:
  build:
    jobs:
      - cypress/run

The hierarchy:

Workflow -> Jobs --> Commands -> define steps
             -> run on Executors

Development

  • Check if you are correctly using the Cypress CircleCI Orb in the .circleci/config.yml file by running npm run validate.
  • You can expand all commands from the orb and see how the "processed" .circleci/config.yml looks during the run on CircleCI. Execute npm run process to print the processed YAML in the terminal.