custom-tests

command
v1.39.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

README

Example: Running custom tests on built images

Open in Cloud Shell

This example shows how to run custom tests on newly built images in the skaffold dev loop.

Custom tests are associated with single image artifacts. When test dependencies change, no build will happen but tests would get re-run. Tests are configured in the skaffold.yaml in the test stanza, e.g.

test:
    - image: skaffold-example
      custom:
      - command: <command>
        timeoutSeconds: <timeout in seconds>
        dependencies: <dependencies for this command>
          paths: <file dependencies>
          - <paths glob>

As tests take time, you might prefer to configure tests using profiles so that they can be automatically enabled or disabled, e.g. If the command exits with a non-zero return code then the test will have failed, and deployment will not continue.

profiles:
  - name: test
    test:
    - image: skaffold-example
      custom:
        - command: <command>
          timeoutSeconds: <timeout in seconds>
          dependencies: <dependencies for this command>
            paths: <file dependencies>
            - <paths glob>

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL