Skip to content

commitd/docker-ui-test

committed/ui-test


Project Logo

Gauge Badge

Docker image for running UI tests in Chrome

Committed Badge Docker Build Status Docker Pulls

This docker image uses gauge and takio to run UI tests in Chrome. This can be used to run the tests locally without installing the dependencies and in CI builds.

🚀 Quickstart

Bind your whole gauge directory and call the gauge command or your relevant yarn script, for example, in your gauge directory:

docker run --rm -v ${PWD}:/gauge committed/ui-test gauge run specs/

or

docker run --rm -v ${PWD}:/gauge committed/ui-test yarn test

The results will be returned in the console and a report written to ${PWD}/reports/html-report. Logs will be written to ${PWD}/logs.

📁 Contents

Installs requirements for UI testing:

Further details

The docker image contains a standard Gauge project layout from gauge init js so you can just bind your specs and tests and reports directories and get the standard settings.

If you want to run against something running on localhost you will need to use docker.host.internal instead and if running on linux then the docker run will need the additional parameter -add-host=host.docker.internal:host-gateway.

💻 Development

To build the docker image run:

./build.sh

Testing

To test the docker image run the docker image with appropriate command e.g.:

docker run --rm  committed/ui-test test.sh

A test file ./test.sh uses the version commands of each tool to check it is installed.

👏 Credits

This is based on the original Dockerfile from Gauge js template.

©️ License

The Dockerfiles and associated scripts are licensed under the MIT license.

About

Docker image for running UI tests using Gauge and Chrome

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published