Skip to content

Commit

Permalink
junit: apply pmd_test tag to the pmd lib too (#6531)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalperi committed Dec 30, 2020
1 parent 6a5939f commit 66efc18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions skylark/junit.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,13 @@ def junit_tests(name, srcs, skip_pmd = False, **kwargs):

lib_kwargs = dict(**kwargs) # have to remove non-java_library args
lib_kwargs.pop("size", "")
lib_tags = lib_kwargs.pop("tags", [])
lib_tags.append("pmd_test")
java_library(
name = name + "_pmdlib",
srcs = srcs,
testonly = True,
tags = lib_tags,
**lib_kwargs
)
pmd_test(
Expand Down

0 comments on commit 66efc18

Please sign in to comment.