[bazel] Use the name of the test suite if possible to create a target
@@ -108,9 +108,17 @@ def java_test_suite(
**kwargs
)
+ if name in srcs:
native.test_suite(
name = "%s-suite" % name,
tests = tests,
tags = ["manual"] + tags,
visibility = visibility,
)
+ else:
+ native.test_suite(
+ name = name,
+ tests = tests,
+ tags = ["manual"] + tags,
+ visibility = visibility,
+ )
