SlideShare a Scribd company logo
1
CircleCI + Cypress Orbs:
Set up faster, easier, end-to-end testing with CircleCI and Cypress
Vinny Thanh
Solutions Engineer, CircleCI
Gleb Bahmutov
VP of Engineering, Cypress
2
Agenda
1. Introductions
2. Intro to CircleCI & Orbs
3. Cypress Product Overview
4. Cypress + CircleCI Orbs
5. Q&A
Gleb Bahmutov
VP of Engineering, Cypress
Vinny Thanh
Solutions Engineer, CircleCI
Our mission is to make it as easy as
possible to go from idea to delivery.
Intro to CircleCI
● Founded in 2011, now at 300+ employees across 5 continents
● We help teams build better software, quicker, more reliably
● We’re currently the world’s largest shared CI/CD platform
● Built for the Cloud - 1M+ builds per day run on our platform
Where CircleCI sits in the toolchain:
Future support: VCS-Agnosticism
CREATION ORCHESTRATION LOGISTICS
Collaborate Deliver Run
Source Control Build • Test • Deliver Monitor • Operate
CODE COMMIT SHIP TO PRODUCTION
...and more+ various partners & integrations
Quick Demo
How CircleCI Uses Cypress
...
steps:
- restore_cache:
keys:
- v1-dependency-cypress-{{ checksum "yarn.lock" }}
- v1-dependency-cypress
...
- save_cache:
key: v1-dependency-cypress-{{ checksum "yarn.lock" }}
paths:
- /home/circleci/.cache/Cypress
...
- run: yarn test:e2e:run
- store_artifacts:
path: cypress/videos
How CircleCI Uses Cypress (cont’d)
How CircleCI Uses Cypress (cont’d)
11
12
13
Existing Integrations
Partner orbs CircleCI orbs
CircleCI Orbs: 58 Partner Orbs: 81 Total Community Orbs: 1600+
14
Blog posts, documentation, and more:
○ Main Orbs Splash Page: circleci.com/orbs
○ Orb Intro Docs: circleci.com/docs/2.0/orb-intro
○ Orb Creation Docs: circleci.com/docs/2.0/creating-orbs
○ Orb Usage Docs: circleci.com/docs/2.0/using-orbs
○ Reusable Config: circleci.com/docs/2.0/reusing-config
○ Orbs Blog Posts: circleci.com/blog/tag/orbs
Or, dive right in:
○ CircleCI Hello World: circleci.com/docs/2.0/hello-world/
○ Config: circleci.com/docs/2.0/configuration-reference/
○ Orb Registry: circleci.com/orbs/registry
○ GitHub Topic: github.com/topics/circleci-orbs (use it!)
Get support:
○ Ask the community: discuss.circleci.com/c/orbs
○ Talk to support: support.circleci.com/hc/requests/new
○ Become a CircleCI Technology Partner:
circleci.com/partners/technology
Links, resources,
examples, etc.
15
Agenda
1. Cypress + CircleCI Orbs
a. Typical tests and running on CI
b. Orb history and features
c. Comparison to other tools
2. Q&A
16
Fast, easy and reliable testing for anything
that runs in a browser.
$ npm install cypress
https://github.com/cypress-io/cypress MIT License
17
Fast, easy and reliable testing
… on CI ?!
$ npx cypress open
$ npx cypress run
What about installing OS and NPM dependencies (and
caching them), and passing options, and running containers in
parallel?!
Loooong list of examples at
https://on.cypress.io/ci
Run Cypress tests on CI
Run Cypress interactively
18
👏 Cypress Orb 👏 Let us, the tool’s authors
write CI configuration for running it.
19
👏 Cypress Orb 👏 Let us, the tool’s authors
write CI configuration for running it.
https://slides.com/bahmutov/circleci-cypress-orb
https://www.youtube.com/watch?time_continue=59&v=J-xbNtKgXfY
20
https://circleci.com/orbs/registry/orb/cypress-io/cypress
21
tip: use CircleCI CLI tool
New features
New executors
Bug fixes
22
Lessons learned: put a useful example first
My opinion: the above config should
cover 90% of use cases
https://github.com/cypress-io/circleci-orb
23
The effective config
$ circleci config process circle.yml
https://github.com/cypress-io/circleci-orb
24
Lessons learned: show common cases
1. Useful example right away
2. Useful example with
parameter
3. A common complex
example (install in 1 job,
then run 3 parallel test
jobs)
https://github.com/cypress-io/circleci-orb
25
Static config check
version: 2.1
orbs:
cypress: cypress-io/cypress@1
workflows:
build:
jobs:
- cypress/run:
recording: true
$ circleci config validate circle.yml
I want to record results to Cypress Dashboard
$ circleci config validate circle.yml
Error: Error calling workflow: 'build'
Error calling job: 'cypress/run'
Unexpected argument(s): recording
26
Look at the Orb’s documentation
Ohhh, it is “record: true”!
27
Cypress Dashboard
# set CYPRESS_RECORD_KEY
# in CircleCI environment
# or security context 👏
- cypress/run:
record: true
https://on.cypress.io/dashboard-introduction
28
Cypress Dashboard: parallelization
- cypress/install:
build: 'npm run build'
- cypress/run:
requires:
- cypress/install
record: true
parallel: true
parallelism: 4
https://on.cypress.io/parallelization
29
Cypress Dashboard: parallelization
- cypress/install:
build: 'npm run build'
- cypress/run:
requires:
- cypress/install
record: true
parallel: true
parallelism: 15
https://on.cypress.io/parallelization
30
Examples, examples,
examples
…, examples, examples,
examples, and a couple
more examples
Lessons learned: write more examples
31
Lessons learned: write more examples
https://github.com/cypress-io/circleci-orb/blob/master/src/orb.yml
All examples are in the source of
the orb
We process each example to
validate its config
32
Lessons learned: write recipes
Longer than examples to
show real-world use
https://github.com/cypress-io/circleci-orb/blob/master/docs/recipes.md
33
Tip: store test artifacts on Circle
version: 2.1
orbs:
cypress: cypress-io/cypress@1
workflows:
build:
jobs:
- cypress/run:
store_artifacts: true
Store Cypress error screenshots and test run videos on CircleCI
https://github.com/cypress-io/circleci-orb/blob/master/docs/examples.md#artifacts
34
Tip: store test artifacts on Circle
version: 2.1
orbs:
cypress: cypress-io/cypress@1
workflows:
build:
jobs:
- cypress/run:
yarn: true
command: yarn test:e2e:run
store_artifacts: true
...
steps:
- restore_cache:
keys:
- v1-dependency-cypress-{{ checksum "yarn.lock" }}
- v1-dependency-cypress
...
- save_cache:
key: v1-dependency-cypress-{{ checksum "yarn.lock" }}
paths:
- /home/circleci/.cache/Cypress
...
- run: yarn test:e2e:run
- store_artifacts:
path: cypress/videos
Remember “How CircleCI Uses
Cypress”?
Equivalent entire config
35
version: 2.1
orbs:
cypress: cypress-io/cypress@1
workflows:
build:
jobs:
- cypress/run:
post-steps:
- store_artifacts:
path: mochawesome-report
Store any artifacts on Circle
Store custom test reports
https://github.com/cypress-io/circleci-orb/blob/master/docs/examples.md#any-artifacts
36
version: 2.1
orbs:
cypress: cypress-io/cypress@1
workflows:
build:
jobs:
- cypress/run:
name: full tests
start: npm start
command: NODE_ENV=test npm run cypress:run
post-steps:
# store the created coverage report folder
# you can click on it in the CircleCI UI
# to see live static HTML site
- store_artifacts:
path: coverage
Store code coverage reports on Circle!
https://github.com/cypress-io/cypress-example-todomvc-redux
37
Store code coverage reports on Circle!
https://circleci.com/gh/cypress-io/cypress-example-todomvc-redux/
38
Store code coverage reports on Circle!
https://circleci.com/gh/cypress-io/cypress-example-todomvc-redux/
39
CircleCI workflow link in Cypress Dashboard
40
https://circleci.com/gh/cypress-io/workflows/cypress/tree/develop
Is built mostly on CircleCI
Windows builds (32 and 64) are moving to Circle too
41
https://circleci.com/gh/cypress-io/workflows/cypress/tree/develop
Is built mostly on CircleCI
Even more - each build kicks off test projects that
report back via status checks
42
Is built mostly on CircleCI
We 💝 Circle workflow 2.1 syntax
Commands ❤
Jobs ❤
Orbs ❤
Executors are ok
https://github.com/cypress-io/cypress-test-node-versions/blob/master/circle.yml
43
Cypress Orb vs Others
Cypress CircleCI Orb Cypress GitHub Action Cypress Netlify Plugin
Caching and test
execution
✅ ✅ ✅
Single line config ✅ − ✅
Total parameters 23 17 4
Control number of
parallel containers
✅ − −
Separate install
and test jobs
✅ ✅ −
Validate config ✅ − −
Repository cypress-io/circleci-orb cypress-io/github-action cypress-io/netlify-plugin-cypress
44
Conclusions
Run full end-to-end tests in a real browser
on your CI with a single line
version: 2.1
orbs:
cypress: cypress-io/cypress@1
workflows:
build:
jobs:
- cypress/run
45
Thank you!
Time for Q&A
46
Contact us with questions!
marketing-tech@circleci.com
https://link.cypress.io/circle
Fill out this survey and get a free Cypress T-Shirt
gleb@cypress.io
@bahmutov

More Related Content

PDF
Deploying 3 times a day without a downtime @ Rocket Tech Summit in Berlin
PDF
Dockerize it! @ Codemotion 2016 in Rome
PDF
[Poland] SecOps live cooking with OWASP appsec tools
PDF
快快樂樂打造自動化開發環境
PDF
CI/CD、自動化,你還沒準備好(GCPUG.TW Meetup #34)
PPTX
Openstack Third-Party CI and the review of a few Openstack Infrastructure pro...
PDF
"How to deploy to production 10 times a day" Андрей Шумада
PDF
Использование Docker в CI / Александр Акбашев (HERE Technologies)
Deploying 3 times a day without a downtime @ Rocket Tech Summit in Berlin
Dockerize it! @ Codemotion 2016 in Rome
[Poland] SecOps live cooking with OWASP appsec tools
快快樂樂打造自動化開發環境
CI/CD、自動化,你還沒準備好(GCPUG.TW Meetup #34)
Openstack Third-Party CI and the review of a few Openstack Infrastructure pro...
"How to deploy to production 10 times a day" Андрей Шумада
Использование Docker в CI / Александр Акбашев (HERE Technologies)

What's hot (14)

PPT
Open Source CMS, MDD, TDD: Pros and Cons
PPTX
Container sig#1 ansible-container
PDF
CI、CD、Automation你還沒準備好!?(Agile Tour Kaohsiung 2017)
PDF
The story of language development
PDF
Patterns and antipatterns in Docker image lifecycle as was presented at Globa...
PPTX
20150317 firefox os_studymtg_engver
PDF
CI : the first_step: Auto Testing with CircleCI - (MOSG)
PDF
DevOpsDays Taipei 2017 Opening Talk
PDF
How to create your own hack environment
PDF
DCSF 19 Deploying Rootless buildkit on Kubernetes
PDF
Patterns and antipatterns in Docker image lifecycle as was presented at Devop...
PDF
Ansible Workshop for Pythonistas
PDF
Docker to the Rescue of an Ops Team
PDF
Beachhead implements new opcode on CLR JIT
Open Source CMS, MDD, TDD: Pros and Cons
Container sig#1 ansible-container
CI、CD、Automation你還沒準備好!?(Agile Tour Kaohsiung 2017)
The story of language development
Patterns and antipatterns in Docker image lifecycle as was presented at Globa...
20150317 firefox os_studymtg_engver
CI : the first_step: Auto Testing with CircleCI - (MOSG)
DevOpsDays Taipei 2017 Opening Talk
How to create your own hack environment
DCSF 19 Deploying Rootless buildkit on Kubernetes
Patterns and antipatterns in Docker image lifecycle as was presented at Devop...
Ansible Workshop for Pythonistas
Docker to the Rescue of an Ops Team
Beachhead implements new opcode on CLR JIT
Ad

Similar to Set up faster, easier, end-to-end testing with CircleCI and Cypress (20)

PPTX
How to improve CI CD for any Node.js application
PPTX
Cypress for Testing
PPTX
Cypress E2E Testing
PDF
Testing Vue Apps with Cypress.io (STLJS Meetup April 2018)
PDF
Introduction to CircleCI
PPTX
Building reliable web applications using Cypress
PDF
Boosting QA Efficiency: Benefits of Cypress for API Automation
PPTX
Introduction to Circle Ci Presentation.pptx
PDF
Modern e2e-testing-for-complex-web-applications-with-cypressio
PPTX
Introduction to Integration Testing With Cypress
PPTX
Automation using Cypress
PPTX
Cypress Testing.pptx
DOCX
Cypress.docx
PPTX
Why you should switch to Cypress for modern web testing?
PDF
Cypress new old Selenium
PPTX
Parallel Test execution in Cypress with CI/CD
PDF
Achievement Unlocked: Drive development, increase velocity, and write blissfu...
PPTX
Build reliable Svelte applications using Cypress
PPTX
Introduction to cypress in Angular (Chinese)
PPTX
Cypress.pptx
How to improve CI CD for any Node.js application
Cypress for Testing
Cypress E2E Testing
Testing Vue Apps with Cypress.io (STLJS Meetup April 2018)
Introduction to CircleCI
Building reliable web applications using Cypress
Boosting QA Efficiency: Benefits of Cypress for API Automation
Introduction to Circle Ci Presentation.pptx
Modern e2e-testing-for-complex-web-applications-with-cypressio
Introduction to Integration Testing With Cypress
Automation using Cypress
Cypress Testing.pptx
Cypress.docx
Why you should switch to Cypress for modern web testing?
Cypress new old Selenium
Parallel Test execution in Cypress with CI/CD
Achievement Unlocked: Drive development, increase velocity, and write blissfu...
Build reliable Svelte applications using Cypress
Introduction to cypress in Angular (Chinese)
Cypress.pptx
Ad

Recently uploaded (20)

PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
history of c programming in notes for students .pptx
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Nekopoi APK 2025 free lastest update
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
top salesforce developer skills in 2025.pdf
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Operating system designcfffgfgggggggvggggggggg
How to Choose the Right IT Partner for Your Business in Malaysia
CHAPTER 2 - PM Management and IT Context
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Upgrade and Innovation Strategies for SAP ERP Customers
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Which alternative to Crystal Reports is best for small or large businesses.pdf
Design an Analysis of Algorithms II-SECS-1021-03
history of c programming in notes for students .pptx
Softaken Excel to vCard Converter Software.pdf
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Nekopoi APK 2025 free lastest update
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
How to Migrate SBCGlobal Email to Yahoo Easily
top salesforce developer skills in 2025.pdf
Navsoft: AI-Powered Business Solutions & Custom Software Development
How Creative Agencies Leverage Project Management Software.pdf
Understanding Forklifts - TECH EHS Solution
Wondershare Filmora 15 Crack With Activation Key [2025

Set up faster, easier, end-to-end testing with CircleCI and Cypress

  • 1. 1 CircleCI + Cypress Orbs: Set up faster, easier, end-to-end testing with CircleCI and Cypress Vinny Thanh Solutions Engineer, CircleCI Gleb Bahmutov VP of Engineering, Cypress
  • 2. 2 Agenda 1. Introductions 2. Intro to CircleCI & Orbs 3. Cypress Product Overview 4. Cypress + CircleCI Orbs 5. Q&A
  • 3. Gleb Bahmutov VP of Engineering, Cypress Vinny Thanh Solutions Engineer, CircleCI
  • 4. Our mission is to make it as easy as possible to go from idea to delivery.
  • 5. Intro to CircleCI ● Founded in 2011, now at 300+ employees across 5 continents ● We help teams build better software, quicker, more reliably ● We’re currently the world’s largest shared CI/CD platform ● Built for the Cloud - 1M+ builds per day run on our platform
  • 6. Where CircleCI sits in the toolchain: Future support: VCS-Agnosticism CREATION ORCHESTRATION LOGISTICS Collaborate Deliver Run Source Control Build • Test • Deliver Monitor • Operate CODE COMMIT SHIP TO PRODUCTION ...and more+ various partners & integrations
  • 8. How CircleCI Uses Cypress ... steps: - restore_cache: keys: - v1-dependency-cypress-{{ checksum "yarn.lock" }} - v1-dependency-cypress ... - save_cache: key: v1-dependency-cypress-{{ checksum "yarn.lock" }} paths: - /home/circleci/.cache/Cypress ... - run: yarn test:e2e:run - store_artifacts: path: cypress/videos
  • 9. How CircleCI Uses Cypress (cont’d)
  • 10. How CircleCI Uses Cypress (cont’d)
  • 11. 11
  • 12. 12
  • 13. 13 Existing Integrations Partner orbs CircleCI orbs CircleCI Orbs: 58 Partner Orbs: 81 Total Community Orbs: 1600+
  • 14. 14 Blog posts, documentation, and more: ○ Main Orbs Splash Page: circleci.com/orbs ○ Orb Intro Docs: circleci.com/docs/2.0/orb-intro ○ Orb Creation Docs: circleci.com/docs/2.0/creating-orbs ○ Orb Usage Docs: circleci.com/docs/2.0/using-orbs ○ Reusable Config: circleci.com/docs/2.0/reusing-config ○ Orbs Blog Posts: circleci.com/blog/tag/orbs Or, dive right in: ○ CircleCI Hello World: circleci.com/docs/2.0/hello-world/ ○ Config: circleci.com/docs/2.0/configuration-reference/ ○ Orb Registry: circleci.com/orbs/registry ○ GitHub Topic: github.com/topics/circleci-orbs (use it!) Get support: ○ Ask the community: discuss.circleci.com/c/orbs ○ Talk to support: support.circleci.com/hc/requests/new ○ Become a CircleCI Technology Partner: circleci.com/partners/technology Links, resources, examples, etc.
  • 15. 15 Agenda 1. Cypress + CircleCI Orbs a. Typical tests and running on CI b. Orb history and features c. Comparison to other tools 2. Q&A
  • 16. 16 Fast, easy and reliable testing for anything that runs in a browser. $ npm install cypress https://github.com/cypress-io/cypress MIT License
  • 17. 17 Fast, easy and reliable testing … on CI ?! $ npx cypress open $ npx cypress run What about installing OS and NPM dependencies (and caching them), and passing options, and running containers in parallel?! Loooong list of examples at https://on.cypress.io/ci Run Cypress tests on CI Run Cypress interactively
  • 18. 18 👏 Cypress Orb 👏 Let us, the tool’s authors write CI configuration for running it.
  • 19. 19 👏 Cypress Orb 👏 Let us, the tool’s authors write CI configuration for running it. https://slides.com/bahmutov/circleci-cypress-orb https://www.youtube.com/watch?time_continue=59&v=J-xbNtKgXfY
  • 21. 21 tip: use CircleCI CLI tool New features New executors Bug fixes
  • 22. 22 Lessons learned: put a useful example first My opinion: the above config should cover 90% of use cases https://github.com/cypress-io/circleci-orb
  • 23. 23 The effective config $ circleci config process circle.yml https://github.com/cypress-io/circleci-orb
  • 24. 24 Lessons learned: show common cases 1. Useful example right away 2. Useful example with parameter 3. A common complex example (install in 1 job, then run 3 parallel test jobs) https://github.com/cypress-io/circleci-orb
  • 25. 25 Static config check version: 2.1 orbs: cypress: cypress-io/cypress@1 workflows: build: jobs: - cypress/run: recording: true $ circleci config validate circle.yml I want to record results to Cypress Dashboard $ circleci config validate circle.yml Error: Error calling workflow: 'build' Error calling job: 'cypress/run' Unexpected argument(s): recording
  • 26. 26 Look at the Orb’s documentation Ohhh, it is “record: true”!
  • 27. 27 Cypress Dashboard # set CYPRESS_RECORD_KEY # in CircleCI environment # or security context 👏 - cypress/run: record: true https://on.cypress.io/dashboard-introduction
  • 28. 28 Cypress Dashboard: parallelization - cypress/install: build: 'npm run build' - cypress/run: requires: - cypress/install record: true parallel: true parallelism: 4 https://on.cypress.io/parallelization
  • 29. 29 Cypress Dashboard: parallelization - cypress/install: build: 'npm run build' - cypress/run: requires: - cypress/install record: true parallel: true parallelism: 15 https://on.cypress.io/parallelization
  • 30. 30 Examples, examples, examples …, examples, examples, examples, and a couple more examples Lessons learned: write more examples
  • 31. 31 Lessons learned: write more examples https://github.com/cypress-io/circleci-orb/blob/master/src/orb.yml All examples are in the source of the orb We process each example to validate its config
  • 32. 32 Lessons learned: write recipes Longer than examples to show real-world use https://github.com/cypress-io/circleci-orb/blob/master/docs/recipes.md
  • 33. 33 Tip: store test artifacts on Circle version: 2.1 orbs: cypress: cypress-io/cypress@1 workflows: build: jobs: - cypress/run: store_artifacts: true Store Cypress error screenshots and test run videos on CircleCI https://github.com/cypress-io/circleci-orb/blob/master/docs/examples.md#artifacts
  • 34. 34 Tip: store test artifacts on Circle version: 2.1 orbs: cypress: cypress-io/cypress@1 workflows: build: jobs: - cypress/run: yarn: true command: yarn test:e2e:run store_artifacts: true ... steps: - restore_cache: keys: - v1-dependency-cypress-{{ checksum "yarn.lock" }} - v1-dependency-cypress ... - save_cache: key: v1-dependency-cypress-{{ checksum "yarn.lock" }} paths: - /home/circleci/.cache/Cypress ... - run: yarn test:e2e:run - store_artifacts: path: cypress/videos Remember “How CircleCI Uses Cypress”? Equivalent entire config
  • 35. 35 version: 2.1 orbs: cypress: cypress-io/cypress@1 workflows: build: jobs: - cypress/run: post-steps: - store_artifacts: path: mochawesome-report Store any artifacts on Circle Store custom test reports https://github.com/cypress-io/circleci-orb/blob/master/docs/examples.md#any-artifacts
  • 36. 36 version: 2.1 orbs: cypress: cypress-io/cypress@1 workflows: build: jobs: - cypress/run: name: full tests start: npm start command: NODE_ENV=test npm run cypress:run post-steps: # store the created coverage report folder # you can click on it in the CircleCI UI # to see live static HTML site - store_artifacts: path: coverage Store code coverage reports on Circle! https://github.com/cypress-io/cypress-example-todomvc-redux
  • 37. 37 Store code coverage reports on Circle! https://circleci.com/gh/cypress-io/cypress-example-todomvc-redux/
  • 38. 38 Store code coverage reports on Circle! https://circleci.com/gh/cypress-io/cypress-example-todomvc-redux/
  • 39. 39 CircleCI workflow link in Cypress Dashboard
  • 40. 40 https://circleci.com/gh/cypress-io/workflows/cypress/tree/develop Is built mostly on CircleCI Windows builds (32 and 64) are moving to Circle too
  • 41. 41 https://circleci.com/gh/cypress-io/workflows/cypress/tree/develop Is built mostly on CircleCI Even more - each build kicks off test projects that report back via status checks
  • 42. 42 Is built mostly on CircleCI We 💝 Circle workflow 2.1 syntax Commands ❤ Jobs ❤ Orbs ❤ Executors are ok https://github.com/cypress-io/cypress-test-node-versions/blob/master/circle.yml
  • 43. 43 Cypress Orb vs Others Cypress CircleCI Orb Cypress GitHub Action Cypress Netlify Plugin Caching and test execution ✅ ✅ ✅ Single line config ✅ − ✅ Total parameters 23 17 4 Control number of parallel containers ✅ − − Separate install and test jobs ✅ ✅ − Validate config ✅ − − Repository cypress-io/circleci-orb cypress-io/github-action cypress-io/netlify-plugin-cypress
  • 44. 44 Conclusions Run full end-to-end tests in a real browser on your CI with a single line version: 2.1 orbs: cypress: cypress-io/cypress@1 workflows: build: jobs: - cypress/run
  • 46. 46 Contact us with questions! marketing-tech@circleci.com https://link.cypress.io/circle Fill out this survey and get a free Cypress T-Shirt gleb@cypress.io @bahmutov