ensure invalid dependecy fails linter with helpful error

This commit is contained in:
Brad Rydzewski
2020-08-19 10:43:59 -04:00
parent fe9dece266
commit 4b10e95195
3 changed files with 42 additions and 34 deletions

View File

@@ -197,6 +197,12 @@ func TestLint(t *testing.T) {
// invalid: true,
// message: "linter: invalid or missing name",
// },
{
path: "testdata/missing_dep.yml",
invalid: true,
message: "linter: unknown step dependency detected: test references foo",
},
}
for _, test := range tests {
name := path.Base(test.path)