github.com/0xKiwi/rules_go@v0.24.3/go/tools/testwrapper/BUILD.bazel (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_test") 2 3 # srcs are compiled into the test package with the generated testmain. 4 filegroup( 5 name = "srcs", 6 srcs = [ 7 "test2json.go", 8 "wrap.go", 9 "xml.go", 10 ], 11 visibility = ["//visibility:public"], 12 ) 13 14 filegroup( 15 name = "all_files", 16 testonly = True, 17 srcs = glob( 18 ["**"], 19 exclude = ["testdata/*"], 20 ), 21 visibility = ["//visibility:public"], 22 ) 23 24 go_test( 25 name = "go_default_test", 26 srcs = [":srcs"] + glob(["*_test.go"]), 27 data = glob(["testdata/*"]), 28 )