• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1licenses(["notice"])
2
3py_library(
4    name = "absltest",
5    srcs = ["absltest.py"],
6    srcs_version = "PY2AND3",
7    visibility = ["//visibility:public"],
8    deps = [
9        ":_pretty_print_reporter",
10        ":xml_reporter",
11        "//absl:app",
12        "//absl/flags",
13        "//absl/logging",
14    ],
15)
16
17py_library(
18    name = "flagsaver",
19    srcs = ["flagsaver.py"],
20    srcs_version = "PY2AND3",
21    visibility = ["//visibility:public"],
22    deps = [
23        "//absl/flags",
24    ],
25)
26
27py_library(
28    name = "parameterized",
29    srcs = [
30        "parameterized.py",
31    ],
32    srcs_version = "PY2AND3",
33    visibility = ["//visibility:public"],
34    deps = [
35        ":absltest",
36    ],
37)
38
39py_library(
40    name = "xml_reporter",
41    srcs = ["xml_reporter.py"],
42    srcs_version = "PY2AND3",
43    visibility = ["//visibility:public"],
44    deps = [
45        ":_pretty_print_reporter",
46    ],
47)
48
49py_library(
50    name = "_bazelize_command",
51    testonly = 1,
52    srcs = ["_bazelize_command.py"],
53    srcs_version = "PY2AND3",
54    visibility = ["//:__subpackages__"],
55    deps = [
56        "//absl/flags",
57    ],
58)
59
60py_library(
61    name = "_pretty_print_reporter",
62    srcs = ["_pretty_print_reporter.py"],
63    srcs_version = "PY2AND3",
64)
65
66py_library(
67    name = "tests/absltest_env",
68    testonly = True,
69    srcs = ["tests/absltest_env.py"],
70)
71
72py_test(
73    name = "tests/absltest_filtering_test",
74    size = "medium",
75    srcs = ["tests/absltest_filtering_test.py"],
76    data = [":tests/absltest_filtering_test_helper"],
77    python_version = "PY3",
78    srcs_version = "PY3",
79    deps = [
80        ":_bazelize_command",
81        ":absltest",
82        ":parameterized",
83        ":tests/absltest_env",
84        "//absl/logging",
85    ],
86)
87
88py_binary(
89    name = "tests/absltest_filtering_test_helper",
90    testonly = 1,
91    srcs = ["tests/absltest_filtering_test_helper.py"],
92    python_version = "PY3",
93    srcs_version = "PY3",
94    deps = [
95        ":absltest",
96        ":parameterized",
97        "//absl:app",
98    ],
99)
100
101py_test(
102    name = "tests/absltest_fail_fast_test",
103    size = "small",
104    srcs = ["tests/absltest_fail_fast_test.py"],
105    data = [":tests/absltest_fail_fast_test_helper"],
106    python_version = "PY3",
107    srcs_version = "PY3",
108    deps = [
109        ":_bazelize_command",
110        ":absltest",
111        ":parameterized",
112        ":tests/absltest_env",
113        "//absl/logging",
114    ],
115)
116
117py_binary(
118    name = "tests/absltest_fail_fast_test_helper",
119    testonly = 1,
120    srcs = ["tests/absltest_fail_fast_test_helper.py"],
121    python_version = "PY3",
122    srcs_version = "PY3",
123    deps = [
124        ":absltest",
125        "//absl:app",
126    ],
127)
128
129py_test(
130    name = "tests/absltest_randomization_test",
131    size = "medium",
132    srcs = ["tests/absltest_randomization_test.py"],
133    data = [":tests/absltest_randomization_testcase"],
134    python_version = "PY3",
135    srcs_version = "PY3",
136    deps = [
137        ":_bazelize_command",
138        ":absltest",
139        ":parameterized",
140        ":tests/absltest_env",
141        "//absl/flags",
142    ],
143)
144
145py_binary(
146    name = "tests/absltest_randomization_testcase",
147    testonly = 1,
148    srcs = ["tests/absltest_randomization_testcase.py"],
149    python_version = "PY3",
150    srcs_version = "PY3",
151    deps = [
152        ":absltest",
153    ],
154)
155
156py_test(
157    name = "tests/absltest_sharding_test",
158    size = "small",
159    srcs = ["tests/absltest_sharding_test.py"],
160    data = [":tests/absltest_sharding_test_helper"],
161    python_version = "PY3",
162    srcs_version = "PY3",
163    deps = [
164        ":_bazelize_command",
165        ":absltest",
166        ":tests/absltest_env",
167    ],
168)
169
170py_binary(
171    name = "tests/absltest_sharding_test_helper",
172    testonly = 1,
173    srcs = ["tests/absltest_sharding_test_helper.py"],
174    python_version = "PY3",
175    srcs_version = "PY3",
176    deps = [":absltest"],
177)
178
179py_test(
180    name = "tests/absltest_test",
181    size = "small",
182    srcs = ["tests/absltest_test.py"],
183    data = [":tests/absltest_test_helper"],
184    python_version = "PY3",
185    srcs_version = "PY3",
186    deps = [
187        ":_bazelize_command",
188        ":absltest",
189        ":parameterized",
190        ":tests/absltest_env",
191    ],
192)
193
194py_binary(
195    name = "tests/absltest_test_helper",
196    testonly = 1,
197    srcs = ["tests/absltest_test_helper.py"],
198    python_version = "PY3",
199    srcs_version = "PY3",
200    deps = [
201        ":absltest",
202        "//absl:app",
203        "//absl/flags",
204    ],
205)
206
207py_test(
208    name = "tests/flagsaver_test",
209    srcs = ["tests/flagsaver_test.py"],
210    python_version = "PY3",
211    srcs_version = "PY3",
212    deps = [
213        ":absltest",
214        ":flagsaver",
215        "//absl/flags",
216    ],
217)
218
219py_test(
220    name = "tests/parameterized_test",
221    srcs = ["tests/parameterized_test.py"],
222    python_version = "PY3",
223    srcs_version = "PY3",
224    deps = [
225        ":absltest",
226        ":parameterized",
227    ],
228)
229
230py_test(
231    name = "tests/xml_reporter_test",
232    srcs = ["tests/xml_reporter_test.py"],
233    data = [":tests/xml_reporter_helper_test"],
234    python_version = "PY3",
235    srcs_version = "PY3",
236    deps = [
237        ":_bazelize_command",
238        ":absltest",
239        ":parameterized",
240        ":xml_reporter",
241        "//absl/logging",
242    ],
243)
244
245py_binary(
246    name = "tests/xml_reporter_helper_test",
247    testonly = 1,
248    srcs = ["tests/xml_reporter_helper_test.py"],
249    python_version = "PY3",
250    srcs_version = "PY3",
251    deps = [
252        ":absltest",
253        "//absl/flags",
254    ],
255)
256