forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[java] Cleanup after migration to JUnit 5 (SeleniumHQ#10793)
Final cleanup in Bazel config after migration to JUnit 5. This PR also includes a fix in a test (not being executed) Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
- Loading branch information
1 parent
3e8f94c
commit 6e87b08
Showing
2 changed files
with
2 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,10 @@ | ||
load("@apple_rules_lint//lint:defs.bzl", "get_lint_config") | ||
load( | ||
"@contrib_rules_jvm//java:defs.bzl", | ||
"spotbugs_test", | ||
_java_library = "java_library", | ||
_java_test = "java_test", | ||
) | ||
load(":export.bzl", _java_export = "java_export") | ||
|
||
def add_lint_tests(name, **kwargs): | ||
srcs = kwargs.get("srcs", []) | ||
|
||
if len(srcs) == 0: | ||
return | ||
|
||
tags = kwargs.get("tags", []) | ||
|
||
spotbugs = get_lint_config("java-spotbugs", tags) | ||
if spotbugs != None: | ||
spotbugs_test( | ||
name = "%s-spotbugs" % name, | ||
config = spotbugs, | ||
only_output_jars = True, | ||
deps = [ | ||
":%s" % name, | ||
], | ||
tags = tags + ["lint", "java-spotbugs"], | ||
size = "small", | ||
timeout = "moderate", | ||
) | ||
|
||
java_export = _java_export | ||
java_library = _java_library | ||
java_test = _java_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters