diff options
Diffstat (limited to 'rules/test_common')
-rw-r--r-- | rules/test_common/rules.bzl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rules/test_common/rules.bzl b/rules/test_common/rules.bzl index 5b9b8228..5d4bc6a5 100644 --- a/rules/test_common/rules.bzl +++ b/rules/test_common/rules.bzl @@ -29,3 +29,12 @@ expect_failure_test = analysistest.make( }, doc = "This test checks that a rule fails with the expected failure_message", ) + +def _target_under_test_exist_impl(ctx): + env = analysistest.begin(ctx) + return analysistest.end(env) + +target_under_test_exist_test = analysistest.make( + impl = _target_under_test_exist_impl, + doc = "This test checks that the target under test exists without failure", +) |