go_test(
  name = "foo_test",
  srcs = ["foo_test.go"],
  test_outputs = ["bar.txt"],
  data = ["test_data"],
)