diff --git a/cli/app_test.go b/cli/app_test.go new file mode 100644 index 0000000..8519e13 --- /dev/null +++ b/cli/app_test.go @@ -0,0 +1,19 @@ +package main + +import ( + "testing" +) + +func TestLoadTerraformRules(t *testing.T) { + _, err := loadBuiltInRuleSet("assets/terraform.yml") + if err != nil { + t.Errorf("Cannot load built-in Terraform rules") + } +} + +func TestLoadValidateRules(t *testing.T) { + _, err := loadBuiltInRuleSet("assets/lint-rules.yml") + if err != nil { + t.Errorf("Cannot load built-in rules for -validate option") + } +}