Testing

Static tests consist of unit, formatting, and doc link tests.

Cluster tests consist of several test types:

  • End-to-end (e2e): simulate the “happy path” usage of the binary and resulting operator project.
  • Integration: test components of the operator-sdk binary and features of scaffolded projects that are bound to external projects, such as .
Docs only
Code

If running tests locally, access to a Kubernetes cluster of server version v1.11.3 or higher is required. These tests require KUBECONFIG be set or kubeconfig file be present in a default location like .

You will also need to set up an envtest environment for cluster tests. Follow this doc for setup instructions.

All the tests are run through the . Run for a full list of available tests.