From c9116d6873807e61655736d59cc9e5ee1da71af6 Mon Sep 17 00:00:00 2001 From: Manuel Naranjo Date: Tue, 12 Mar 2024 10:40:33 +0100 Subject: [PATCH] bazel: allow configuring the alias to the repo --- docs/rules.md | 3 ++- pitest/private/rules.bzl | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/rules.md b/docs/rules.md index 4907e1c..4144dd8 100644 --- a/docs/rules.md +++ b/docs/rules.md @@ -8,7 +8,7 @@ Public API re-exports
 java_pitest_test(name, test_class, package_prefixes, runtime_deps, args, srcs, src_dirs, data,
-                 test_targets, library_targets, target_classes, kwargs)
+                 test_targets, library_targets, target_classes, rules_pitest, kwargs)
 
Runs pitest test using Bazel. @@ -34,6 +34,7 @@ pitest directly. The arguments are the same as used by `java_test`. | test_targets | bazel test targets that are used by pitest | [] | | library_targets | bazel libraries that are going to be mutated by pitest | [] | | target_classes | pitest targetClasses cli argument | [] | +| rules_pitest | Alias for the rules_pitest in case you don't import as com_bookingcom_rules_pitest | "com_bookingcom_rules_pitest" | | kwargs | Aditional flags to the test | none | diff --git a/pitest/private/rules.bzl b/pitest/private/rules.bzl index d77d716..9005990 100644 --- a/pitest/private/rules.bzl +++ b/pitest/private/rules.bzl @@ -79,6 +79,7 @@ def java_pitest_test( test_targets = [], library_targets = [], target_classes = [], + rules_pitest = "com_bookingcom_rules_pitest", **kwargs): """Runs pitest test using Bazel. @@ -100,6 +101,7 @@ def java_pitest_test( library_targets: bazel libraries that are going to be mutated by pitest target_classes: pitest targetClasses cli argument package_prefixes: List of prefixes for your maven targets + rules_pitest: Alias for the rules_pitest in case you don't import as com_bookingcom_rules_pitest **kwargs: Aditional flags to the test """