Sign inSign up

azzra/wdio

By azzra

•Updated over 9 years ago

WebdriverIO in Docker with Mocha & Jasmine

Image
0

1.5K

azzra/wdio repository overview

⁠DOCKER WEBDRIVERIO

Build Status

Execute WebdriverIO⁠ in a Docker container.

## Usage

It needs a Selenium⁠ instance running, you could have a look here: elgalu/docker-selenium⁠.

### Run

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 :

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 :

docker run -i -v $(pwd):/tests --entrypoint sh -t azzra/wdio

Tag summary

Content type

Image

Digest

Size

84.6 MB

Last updated

over 9 years ago

docker pull azzra/wdio