Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azzra/docker-webdriverio
WebdriverIO in Docker with Mocha & Jasmine
https://github.com/azzra/docker-webdriverio
docker dockerfile jasmine javascript-tests mocha selenium webdriver webdriverio
Last synced: 29 days ago
JSON representation
WebdriverIO in Docker with Mocha & Jasmine
- Host: GitHub
- URL: https://github.com/azzra/docker-webdriverio
- Owner: azzra
- Created: 2017-03-07T19:34:50.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-10T09:41:11.000Z (almost 8 years ago)
- Last Synced: 2024-11-06T10:51:28.553Z (3 months ago)
- Topics: docker, dockerfile, jasmine, javascript-tests, mocha, selenium, webdriver, webdriverio
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DOCKER WEBDRIVERIO
[![Build Status](https://travis-ci.org/azzra/docker-webdriverio.svg?branch=master)](https://travis-ci.org/azzra/docker-webdriverio)
Execute [WebdriverIO](http://webdriver.io/) in a Docker container.
## Usage
It needs a [Selenium](http://www.seleniumhq.org/) instance running, you could have a look here: [elgalu/docker-selenium](https://github.com/elgalu/docker-selenium/).
### Run
```sh
docker run --rm -it -v $(pwd):/tests --net=host azzra/wdio
```> Usage of `--net=host` is only required if Selenium is on your localhost. Without, the container will resolve localhost as itself.
#### Configure Selenium host
You can configure the Selenium host with environment variables `SELENIUM_HOST` & `SELENIUM_PORT` :
```sh
docker run --rm -it -v $(pwd):/tests --net=host -e SELENIUM_PORT=5555 azzra/wdio
```#### I need a shell !
You need to overwrite the Dockerfile entrypoint :
```sh
docker run -i -v $(pwd):/tests --entrypoint sh -t azzra/wdio
```