Skip to content

Commit

Permalink
add test to make sure built-in rules can be loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Larry Hitchon committed Apr 14, 2018
1 parent fa7d283 commit d150611
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cli/app_test.go
Original file line number Diff line number Diff line change
@@ -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")
}
}

0 comments on commit d150611

Please sign in to comment.