# What does the 'kyverno test' command read to run policy tests?

Kyverno, Hard (Expert), Testing. https://k8wiz.com/uquiz/what-does-the-kyverno-test-command-read-to-run-policy-tests

- A. kyverno-test.yaml files listing policies, resources and expected results
- B. Go test files (*_test.go) placed next to the policy YAML
- C. PolicyReports fetched from the cluster in the current context
- D. The templates/tests/ directory of a Helm chart that holds the policies

**Answer:** kyverno-test.yaml files listing policies, resources and expected results

**Explanation:** 'kyverno test <dir>' finds kyverno-test.yaml files, applies the listed policies to the listed resources without a cluster, and compares each rule's result (pass, fail or skip) with the expected one. Running it in CI catches policy regressions before they reach a cluster.
