Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```