github.com/kubeshop/testkube@v1.17.23/contrib/container/pytest/pytest_test.yaml (about)

     1  apiVersion: tests.testkube.io/v3
     2  kind: Test
     3  metadata:
     4    name: container-executor-pytest-passed-sample
     5    namespace: testkube
     6  spec:
     7    type: container-executor-pytest/test
     8    content:
     9      type: git
    10      repository:
    11        type: git
    12        uri: https://github.com/kubeshop/testkube
    13        branch: main
    14        path: contrib/container/pytest/passed_sample.py
    15    executionRequest:
    16      command: ["pytest", "/data/repo/contrib/container/pytest/passed_sample.py"]
    17  ---
    18  apiVersion: tests.testkube.io/v3
    19  kind: Test
    20  metadata:
    21    name: container-executor-pytest-failed-sample
    22    namespace: testkube
    23  spec:
    24    type: container-executor-pytest/test
    25    content:
    26      type: git
    27      repository:
    28        type: git
    29        uri: https://github.com/kubeshop/testkube
    30        branch: main
    31        path: contrib/container/pytest/failed_sample.py
    32    executionRequest:
    33      command: ["pytest", "/data/repo/contrib/container/pytest/failed_sample.py"]