Back to Skaffold

README

examples/structure-tests/README.md

2.19.0952 B
Original Source

Example: Running container-structure-test on built images

This example shows how to run structure tests on newly built images in your skaffold dev loop. Tests are associated with single artifacts, and one or more test files can be provided. Tests are configured in your skaffold.yaml in the test stanza, e.g.

yaml
test:
    - image: skaffold-example
    structureTests:
        - ./test/*

Tests can also be configured through profiles, e.g.

yaml
profiles:
  - name: test
    test:
      - image: skaffold-example
        structureTests:
          - ./test/profile_structure_test.yaml