Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Load test spec at runtime rather than Docker image build time #5

Merged
merged 3 commits into from Apr 29, 2019

Conversation

mtlynch
Copy link
Contributor

@mtlynch mtlynch commented Mar 27, 2019

If we copy cypress/ and cypress.json into the Docker container at image build time, then the user is forced to rebuild the entire image every time they want to modify their test and re-run Cypress. By loading the test specs as Docker volumes, the user can modify them and then re-run the tests without having to rebuild the image.

This also means that when the tests fail, the artifacts folders are available on the host machine rather than trapped in the Docker container.

If we copy cypress/ and cypress.json into the Docker container at image build time, then the user is forced to rebuild the entire image every time they want to modify their test and re-run Cypress. By loading the test specs as Docker volumes, the user can modify them and then re-run the tests without having to rebuild the image.
@spenwall
Copy link

This is awesome, and great timing. I like being able to run new tests without building every time.

@bahmutov
Copy link
Contributor

@mtlynch you are a good writer - can you please describe using comments and maybe README how the volume is mapped and how to work with the test runner locally?

@mtlynch
Copy link
Contributor Author

mtlynch commented Apr 29, 2019

@bahmutov sure thing, updated!

@bahmutov bahmutov merged commit eea30d2 into cypress-io:master Apr 29, 2019
@bahmutov
Copy link
Contributor

thank you @mtlynch

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants