Skip to content

Commit

Permalink
Always check files in generation tests (#1847)
Browse files Browse the repository at this point in the history
When iterating on new language plugins, it is helpful to have the CheckFiles
validation run so that any mismatched BUILD file output can be shown.

Replacing `FailNow` with `Fail` allows for this
  • Loading branch information
Whoaa512 authored Jul 27, 2024
1 parent bbca748 commit 50f6959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testtools/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ Run %s to update BUILD.out and expected{Stdout,Stderr,ExitCode}.txt files.
for _, err := range errs {
t.Log(err)
}
t.FailNow()
t.Fail()
}

CheckFiles(t, testdataDir, goldens)
Expand Down

0 comments on commit 50f6959

Please sign in to comment.