chainsaw
chainsaw: Declarative K8s e2e testing
Chainsaw is a tool for declarative end-to-end testing of Kubernetes clusters. It allows you to write tests in a YAML format, making it easy to define and run tests against your Kubernetes resources.
How to install Chainsaw on macOS
Use Homebrew to install Chainsaw. First add the Chainsaw tap:
brew tap kyverno/chainsaw https://github.com/kyverno/chainsaw
Install chainsaw:
brew install kyverno/chainsaw/chainsaw
Verify Installation
After installation, you can verify that Chainsaw is installed correctly by running:
$ chainsaw version
Version: 0.2.12
Time: 2024-12-04T13:06:58Z
Git commit ID: 6459cd84a78f13d842e0ff0ad2f6a76c321fd579
Basic Usage
To run tests on a Kubernetes cluster, you can use the following command:
chainsaw test ./tests/
# or
chainsaw test ./tests/more-specific-test-folder/