INNER CODE UNIT · Go
requireSchematoolsCLI
bjw-s-labs/helm-charts · tools/helm-schema-tools/cmd/helm-schema-tools/main_test.go:13
func requireSchematoolsCLI(t *testing.T) {
t.Helper()
if _, err := exec.LookPath("schematools-cli"); err != nil {
t.Skip("schematools-cli not found in PATH; run `mise install` to install")
}
}
func TestRunGenerateValues_Success(t *testing.T) {
requireSchematoolsCLI(t)
// Create a temp directory with a test schema
tmpDir := t.TempDir()
schemaPath := filepath.Join(tmpDir, "test.schema.json")
outputPath := filepath.Join(tmpDir, "values.yaml")
schema := `{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {