From 4562985e96cccae910530019e1d453027aa0fe04 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 14156d64..77f00df8 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. @@ -394,6 +395,7 @@ attribute to allow all the tests to be run in one go. | tags |

-

| [] | | visibility |

-

| None | | size | The size of the test, passed to java_test | None | +| package_prefixes | Package prefixes to look for when infering class names for tests, prefixed and postfixed with `.`. Example: `[".com.", ".no."]` | [] | | kwargs |

-

| none |