Skip to content

Easy to use, simple to extend, external pytest plugin that minimally leverages docker-py. See PyPi.

License

Notifications You must be signed in to change notification settings

jameshnsears/pytest-docker-py

Repository files navigation

pytest-docker-py Build Status Coverage Status sonarcloud Codacy Badge

  • Easy to use, simple to extend, external pytest plugin that minimally leverages docker-py.

1. Introduction

  • A plugin that keeps it simple and lets you:

    • pull images - if not already pulled.
    • start containers - with various, optional, parameters - i.e. ports; networks; volumes; commands.
    • stop containers.
  • See test/integration/test_plugin.py for a working example.

2. Installation

  • pip install pytest-docker-py

or

then

3. Development / PR - on Ubuntu 18.04

3.1. Create Virtual Environment

  • ./create-venv.sh

3.2. Unit Tests

  • ./run-unit-tests.sh

3.3. Integration Tests

  • ./run-integration-tests.sh

About

Easy to use, simple to extend, external pytest plugin that minimally leverages docker-py. See PyPi.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published