https://pantsbuild.org/ logo
#development
Title
# development
b

bored-art-40741

04/07/2021, 12:57 AM
And the target looks like this:
Copy code
class JavaSources(Sources):
    expected_file_extensions = (".java",)


class JavaTestsSources(JavaSources):
    default = ("*Test.java",)


class JavaTests(Target):
    alias = "java_tests"
    core_fields = (
        *COMMON_TARGET_FIELDS,
        Dependencies,
        JavaTestsSources,
    )
    help = "Java tests"