bigbite / wp-cypress

WordPress end to end testing with Cypress.io.
MIT License
86 stars 19 forks source link

Check for docker service/daemon before running wp-cypress setup. #63

Closed ampersarnie closed 3 years ago

ampersarnie commented 3 years ago

Description

Fixes #53 - When Docker Desktop is quit the background service daemon is expected to also be close by the app. When running the wp-cypress start command, this was not checked and the build would seem like it continues as normal. This PR explicitly checks for the daemon being active utilising docker ps in quiet mode (-q) which reports back a failure if the daemon is not running, otherwise it responds normal if it is running.

Change Log

Screenshots/Videos

If PR includes visual changes, please include a screenshot (or short video if applicable).

Types of changes (if applicable):

Checklist (if applicable):