From c16a10f32cd01c50ac8a14f58fa45ced49a3b934 Mon Sep 17 00:00:00 2001 From: Knut Eirik Leira Hjelle Date: Thu, 12 Jan 2023 08:49:07 +0100 Subject: [PATCH] fix(#104) Added documentation for package_prefixes for java_test_suite and java_junit5_test --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 14156d64..892c4f42 100644 --- a/README.md +++ b/README.md @@ -282,7 +282,7 @@ Adds linting tests to `rules_jvm_external`'s `java_export` ## java_junit5_test
-java_junit5_test(name, test_class, runtime_deps, kwargs)
+java_junit5_test(name, test_class, runtime_deps, package_prefixes, kwargs)
 
Run junit5 tests using Bazel. @@ -313,6 +313,7 @@ its goals, but this is not complete or available yet. | name | The name of the test. | none | | test_class | The Java class to be loaded by the test runner. If not specified, the class name will be inferred from a combination of the current bazel package and the name attribute. | None | | runtime_deps |

-

| [] | +| package_prefixes | Package prefixes to look for when infering class names for tests, prefixed and postfixed with `.`. Example: `[".com.", ".no."]` | [] | | kwargs |

-

| none | @@ -360,7 +361,7 @@ Adds linting tests to Bazel's own `java_test`
 java_test_suite(name, srcs, runner, test_suffixes, package, deps, runtime_deps, tags, visibility,
-                size, kwargs)
+                size, package_prefixes, kwargs)
 
Create a suite of java tests from `*Test.java` files.