Skip to content
Simon Tsvilik edited this page Jan 17, 2018 · 2 revisions

Welcome to the wdio-docker-service wiki!

This service is very powerful and it draws its power from Docker. With Docker you don't need to worry about messing up your system configuration, everything runs in a controlled isolated and disposable environment.

How to use it?

Currently this service can be used in one of two ways:

  1. As a stand-alone Selenium server which comes paired with browser (Chrome or Firefox)
  2. As a testing framework for your containerized web application

You would use first way for portability and speed where you need to run your tests in a CI/CD environment and have tight control over version of Selenium and browser.

You would use second way for testing your application in its containerized form.

What sort of things could I do with containers?

  • Say you want to test how your app behaves in a different time zone - no problem, just set docker TZ environment variable.
  • How about testing out your code with a real database? - no problem just install it inside your container.
  • Want to see how your app is built with production settings? - no problem, just set your NODE_ENV inside a container.
  • Want to test out new NGINX or Apache configuration, but too worried about doing it locally? - no problem there as well, just point your container to that new config.

As you can see there are a lot of different and powerful things you can do with Docker and this service just makes it a little easier to work with.

Please keep an eye on new testing scenarios using this service.

Thank You!