[Automation Testing] Use Docker or Docker Compose to run Playwright to test Web applications automatically
col-playwright-docker
col-playwright-docker is a Docker image to use Fast and reliable end-to-end testing for modern web apps | Playwright - https://playwright.dev/ to test Web applications automatically.
Prerequisites
-
Docker - https://www.docker.com/
Developing apps today requires so much more than writing code. Multiple languages, frameworks, architectures, and discontinuous interfaces between tools for each lifecycle stage creates enormous complexity.
Docker simplifies and accelerates your workflow, while giving developers the freedom to innovate with their choice of tools, application stacks, and deployment environments for each project.
To learn more about all the features of Docker, see Docker - https://www.docker.com/
-
Docker Compose - https://docs.docker.com/compose/
Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.
To learn more about all the features of Docker Compose, see Docker Compose - https://docs.docker.com/compose/.
Usage
1 | git clone https://github.com/CloudoLife/col-playwright-docker.git |
Docker
Edit or modify ./Dockerfile with your preferred content.
1 | # Docker | Playwright |
Run with docker
command.
1 | docker build . |
Docker Compose
Edit or modify [./docker-compose.yml] with your preferred content.
1 | # docker-compose.yml |
Run with docker-compose
command.
1 | docker-compose run app bash |
References
[2] cloudolife/col-playwright - https://hub.docker.com/r/cloudolife/col-playwright
[3] Fast and reliable end-to-end testing for modern web apps | Playwright - https://playwright.dev/