Skip to content

netz98/ddev-cypress-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cypress testing

End2End and Component Testing with Cypress

DDEV integration

Cypress is added as a docker component cypress/inculded 10.2.0 (more info on images here).

There are two modes of running test:

  1. ddev cypress-open: opens the interactive exploratory app

  2. ddev cypress-run: runs headless browser tests

Running tests

Run ddev cypress-run for all tests. To choose specific suite of test run ddev cypress-run --spec 'test/suite/folder/*' To choose a specific browser run ddev cypress-run --browser electron

Reference to full list of commands

Note: Before running test for a site, please make sure the ddev is started for the site (ddev start).

Useful links

VSF official e2e page Cypress getting started