github.com/replicatedhq/ship@v0.55.0/web/app/cypress/README.md (about) 1 Ship Cypress E2E Tests 2 ====================== 3 ## Local (Iterative) Development 4 There are a few steps to get local development set up with Cypress and Ship. 5 1. Make sure you are `cd`'d into the `web` directory. 6 1. `CYPRESS_HOST=localhost:8800 npx cypress open` 7 - This command opens the Cypress UI, displaying all available tests, 8 1. Before execution of a test, run the following command in a test folder: 9 ```sh 10 $GOPATH/src/github.com/replicatedhq/ship/bin/ship init <CHART_URL> --no-open 11 ``` 12 - This command must be executed before a test run since the Cypress tests rely on a newly started server. 13 There is no way to orchestrate this command from within Cypress. 14 - It is recommended to not run this command in the `ship` folder, but some test folder or scratch workspace. 15 1. Click on a test in the Cypress UI to start execution. When the test finishes, the `ship init` command will exit. 16 1. Repeat steps 3 & 4 between executions. 17 18 ## Run Full Test Suite 19 From the base directory, run `make cypress` to run all tests. 20 21 ## Run in Docker 22 From the root directory of the project: 23 ```sh 24 docker build -t replicatedhq/ship-cypress:latest -f ./web/cypress/Dockerfile . 25 docker run -it replicatedhq/ship-cypress:latest 26 ```