INNER CODE UNIT · Go
TestSettingRoot
transcend-io/terragrunt-atlantis-config · cmd/generate_test.go:90
func TestSettingRoot(t *testing.T) {
runTest(t, filepath.Join("golden", "basic.yaml"), []string{
"--root",
filepath.Join("..", "test_examples", "basic_module"),
})
}
func TestRootPathBeingAbsolute(t *testing.T) {
parent, err := filepath.Abs(filepath.Join("..", "test_examples", "basic_module"))
if err != nil {
t.Error("Failed to find parent directory")
}
runTest(t, filepath.Join("golden", "basic.yaml"), []string{
"--root",
parent,
})
}