github.phpd.cn/thought-machine/please@v12.2.0+incompatible/src/test/BUILD (about) 1 go_library( 2 name = 'test', 3 srcs = glob(['*.go'], exclude = ['*_test.go']), 4 deps = [ 5 '//src/build', 6 '//src/core', 7 '//src/fs', 8 '//src/metrics', 9 '//third_party/go:logging', 10 '//third_party/go:tools', 11 ], 12 visibility = ['PUBLIC'], 13 ) 14 15 go_test( 16 name = 'results_test', 17 srcs = ['results_test.go'], 18 data = glob(['test_data/*']), 19 deps = [ 20 ':test', 21 '//third_party/go:testify', 22 ], 23 ) 24 25 go_test( 26 name = 'test_step_test', 27 srcs = ['test_step_test.go'], 28 deps = [ 29 ':test', 30 '//third_party/go:testify', 31 ], 32 ) 33 34 go_test( 35 name = 'container_test', 36 srcs = ['container_test.go'], 37 container = True, 38 data = ['test_data/container_data.txt'], 39 ) 40 41 go_test( 42 name = 'container_args_test', 43 srcs = ['container_args_test.go'], 44 container = { 45 'docker_run_args': '-e TEST_VALUE=WIBBLE', 46 }, 47 ) 48 49 go_test( 50 name = 'coverage_test', 51 srcs = ['coverage_test.go'], 52 data = [ 53 'test_data/gcov_coverage.gcov', 54 'test_data/go_coverage.txt', 55 'test_data/go_coverage_2.txt', 56 'test_data/go_coverage_3.txt', 57 'test_data/istanbul_coverage.json', 58 'test_data/istanbul_coverage_2.json', 59 'test_data/python-coverage.xml', 60 ], 61 deps = [ 62 ':test', 63 '//third_party/go:testify', 64 ], 65 )