May 13, 2017

[HDGEM] Benefits of testing using Docker compared to running processes locally.

 Some of these benefits include:
  • Pushing images to a Docker registry allows distribution to happen automatically. 
  • The lifecycle of the containers is tied to test execution, so the tests can always run from scratch with a known, clean state. Tests that end up altering the test environment will not interfere with subsequent tests as the containers will be destroyed.
  • The Docker containers can leverage the features of Docker networking. For example, using a user-defined bridge or overlay network allows the tests to run in an isolated subnet, so port contention between container processes and the host will no longer be an issue.
  • The entire configuration of the Docker containers is specified in a docker-compose.yml file alongside the test source
  • Docker images used by the tests can be customized and tagged so you always know what the test is using. Changes made to your testing infrastructure can be tracked.



--
Posted By Blogger to HDGEM at 5/13/2017 08:56:00 PM