https://github.com/testxio/chrome
A Docker image of Chrome for headless testing with testx
https://github.com/testxio/chrome
Last synced: 3 months ago
JSON representation
A Docker image of Chrome for headless testing with testx
- Host: GitHub
- URL: https://github.com/testxio/chrome
- Owner: testxio
- Created: 2018-04-26T07:49:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-18T13:12:26.000Z (over 6 years ago)
- Last Synced: 2025-10-12T02:05:07.641Z (8 months ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A Docker image of Chrome for headless testing
To be used with [testx](http://testx.io/testx).
## Dependencies
Make sure you have all required dependencies locally.
With [testx](http://testx.io/testx) you'll need at least [Protractor](http://www.protractortest.org) and possibly [CoffeeScript](http://coffeescript.org/) (for [testx](http://testx.io/testx) 2.x).
## Usage
The entry point of the image is `npm test`, so this:
```bash
docker run -it --rm -v $(pwd):/work testx/chrome
```
will execute `npm test` in the container.
You can parameterize the execution just like you would an npm run.
For example:
```bash
docker run -it --rm -v $(pwd):/work testx/chrome -- --baseUrl=http://localhost:3000
```
will execute tests against http://localhost:3000, assuming `npm test` runs [Protractor](http://www.protractortest.org).