Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cypress-io/cypress-example-docker-compose
Example running Cypress tests against Apache server via docker-compose
https://github.com/cypress-io/cypress-example-docker-compose
cypress cypress-io docker docker-compose example
Last synced: 3 months ago
JSON representation
Example running Cypress tests against Apache server via docker-compose
- Host: GitHub
- URL: https://github.com/cypress-io/cypress-example-docker-compose
- Owner: cypress-io
- Archived: true
- Created: 2018-12-28T02:13:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-31T06:08:34.000Z (10 months ago)
- Last Synced: 2024-06-22T16:59:11.630Z (5 months ago)
- Topics: cypress, cypress-io, docker, docker-compose, example
- Language: JavaScript
- Homepage: https://on.cypress.io/docker
- Size: 392 KB
- Stars: 142
- Watchers: 32
- Forks: 107
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cypress-example-docker-compose
> Example running Cypress tests against Apache server via docker-compose
[![CircleCI](https://circleci.com/gh/cypress-io/cypress-example-docker-compose.svg?style=svg)](https://circleci.com/gh/cypress-io/cypress-example-docker-compose) [![renovate-app badge][renovate-badge]][renovate-app]
See [docker-compose.yml](docker-compose.yml) and [circle.yml](circle.yml) files.
First [container runs Apache](webapp/Dockerfile), second container has [Cypress tests](e2e/Dockerfile).**note:** for performance on CircleCI, I have turned [docker layer caching](https://circleci.com/docs/2.0/docker-layer-caching/) to avoid rebuilding Docker images unless they have changed.
## Use
1. build the containers with `npm run build`
2. start the web application and run Cypress tests with `npm run up`## More info
- [Cypress Docker docs](https://on.cypress.io/docker)
- [Cypress continuous integration docs](https://on.cypress.io/ci)
- [docker-compose networking](https://docs.docker.com/compose/networking/)
- Read the excellent [End-to-End Testing Web Apps: The Painless Way](https://mtlynch.io/painless-web-app-testing/)[renovate-badge]: https://img.shields.io/badge/renovate-app-blue.svg
[renovate-app]: https://renovateapp.com/