Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions java/private/create_jvm_test_suite.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ def create_jvm_test_suite(
)
tests.append(test_name)

if not tests:
# test_suite with tests=[] would create a suite containing ALL tests in current package
# which would be confusing
fail("No tests found for suite '{}'. Do test files match 'test_suffixes'?".format(name))

native.test_suite(
name = name,
tests = tests,
Expand Down