-
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.
- pip install pytest-docker-py
or
- pip install git+https://github.com/jameshnsears/pytest-docker-py@master
then
- create a test, similar to test/integration/test_plugin.py
- run pytest -s
- sudo apt-get install -y build-essential python3-pip python3-venv
- git clone https://github.com/jameshnsears/pytest-docker-py.git
- cd pytest-docker-py
- ./create-venv.sh
- ./run-unit-tests.sh
- ./run-integration-tests.sh