Configuration testing your Docker containers with TestInfra

Image for post
Image for post
Photo by Nick Karvounis on Unsplash

Why configuration test?

Using TestInfra with Docker

An example test suite — Checking Python runtime

You can replace DOCKER_IMAGE_NAME with the image you want to test
Example tests making use of the file, pip_package and command modules

Integrating configuration testing into your CD pipeline

Really clean Travis CI configuration


Written by

Technical Lead at BJSS. Interested in Automated Testing, Dev practises, Metal, Chiptune. All views my own.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store