github.com/kubeshop/testkube@v1.17.23/contrib/container/pytest/README.md (about) 1 # Pytest container executor 2 This is a simple python based executor for pytest framework https://docs.pytest.org/ 3 4 ## Docker image 5 Current Docker image is based on python 3.8.17 and a few basic modules, like pipenv, pytest and requests. 6 Feel free to change the python version, install missing dependencies, etc. Docker image should be placed in your 7 favourite docker image registry, like local Docker image registry for Minikube, Kind, etc or Cloud provider one, 8 create it using `docker build -t pytest-executor -f Dockerfile` 9 10 ## CRD installation 11 Create test and executor CRD using provided YAML specification, don't forget to point to a proper location 12 of the Docker image in executor CRD, use command 13 `kubectl apply -f container-executor-pytest.yaml` 14 `kubectl apply -f pytest_test.yaml` 15 16 ## Run created tests 17 Use 18 `kubectl testkube run test container-executor-pytest-failed-sample` 19 `kubectl testkube run test container-executor-pytest-passed-sample`