Sign inSign up

frodeaa/docker-pytest-bdd

By frodeaa

•Updated about 5 years ago

Testing applications using pytest-bdd

Image
0

10K+

frodeaa/docker-pytest-bdd repository overview

⁠docker-pytest-bdd

Testing applications using pytest-bdd⁠.

Simplify running pytest-bdd in docker/docker-compose.

⁠Example

use it as base image

FROM frodeaa/docker-pytest-bdd
COPY example /example
WORKDIR /example
CMD pytest

run with volume mount

docker run \
  -v $(pwd)/example:/example \
  -w /example \
  frodeaa/docker-pytest-bdd \
    pytest -vv \
      --gherkin-terminal-reporter \
      --cucumberjson-expanded

# run pytest -h to get help on all options
docker run frodeaa/docker-pytest-bdd pytest -h

# only run test with match the given substring expression
docker run \
  -v $(pwd)/example:/example \
  -w /example \
  frodeaa/docker-pytest-bdd \
    pytest -vv \
      --gherkin-terminal-reporter \
      --cucumberjson-expanded \
      -k post

⁠Installed Libraries

The docker image installs many useful libraries for testing REST APIs with pytest-bdd.

See the requirements.txt⁠ for complete list of libraries installed by the Dockerfile⁠.

Tag summary

Content type

Image

Digest

Size

80 MB

Last updated

about 5 years ago

docker pull frodeaa/docker-pytest-bdd