Skip to content

Command-Line Options ​

Every option TestShed adds to pytest. Paths are relative to the directory of your pytest config file, except --shed-build-context, which is relative to the current directory.

OptionDefaultDescription
--shedoffEnable TestShed for the current test suite.
--shed-image IMAGEnone, requiredImage repository, without a tag (e.g. ghcr.io/acme/app).
--shed-tag TAG|SHAtestsImage tag, or a digest when it starts with sha.
--shed-image-policy POLICYpullpull, build, require or rebuild (see Images).
--shed-build-context DIRthe pytest config's directoryBuild context for build, rebuild and the pull fallback.
--shed-dockerfile FILEDockerfileDockerfile, relative to the build context.
--shed-src-dir DIRsrcSource directory, for project_root.
--shed-tests-dir DIRtestsTests directory, for test_root.
--shed-stubs-dir DIRtests/stubsWhere relative @shed_volumes sources resolve.
--shed-skip-bootstrapoffSkip the image and network, for tests that start no containers.
--shed-container-logsoffPrint container logs when a command or probe fails a test.

Released under the MIT License