STANDARD_TEST_SRCS = [ | |
'**/*Test.java', | |
] | |
java_library( | |
name = 'testutil', | |
srcs = glob(['**/*.java'], excludes = STANDARD_TEST_SRCS), | |
deps = [ | |
'//lib:junit', | |
'//src:code_used_only_by_testutil', | |
], | |
) | |
java_test( | |
name = 'test', | |
srcs = glob(STANDARD_TEST_SRCS), | |
deps = [ | |
':testutil', | |
'//lib:junit', | |
], | |
) | |
project_config( | |
test_target = ':test', | |
) |