Allow to run dependency tests by referencing the macro-name So far, either all tests had to be run (`bazelisk test //plugin/example/...`) to run the dependency tests or one had to call the downstream tests, (e.g. `bazelisk test //plugins/example:example_dependency_allowlist_test`), which required familiarity with the macro implementation. Now, these tests can also be run by either using the default name `dependency_tests` or if set the custom name. Change-Id: I60e3651d0d0891ccded33a837910655229e9dc13
diff --git a/gerrit_plugin.bzl b/gerrit_plugin.bzl index f69902a..09d3d14 100644 --- a/gerrit_plugin.bzl +++ b/gerrit_plugin.bzl
@@ -293,3 +293,11 @@ against = overlap_against, target_compatible_with = in_gerrit_tree_enabled(), ) + + native.test_suite( + name = name, + tests = [ + ":" + plugin + "_dependency_allowlist_test", + ":" + plugin + "_dependency_overlap_test", + ], + )