From 2138afe9dcabca9173d0e73a0497fb7e93b2686f Mon Sep 17 00:00:00 2001 From: Chris Parsons Date: Wed, 27 Feb 2019 17:14:06 -0500 Subject: [PATCH] appropriately escape build_test code snippet --- docs/build_test_doc.md | 2 ++ rules/build_test.bzl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/build_test_doc.md b/docs/build_test_doc.md index 851cf71..6f3c597 100755 --- a/docs/build_test_doc.md +++ b/docs/build_test_doc.md @@ -15,6 +15,7 @@ support would be welcomed. Typical usage: +``` load("@bazel_skylib//rules:build_test.bzl", "build_test") build_test( name = "my_build_test", @@ -22,6 +23,7 @@ Typical usage: "//some/package:rule", ], ) +``` ### Parameters diff --git a/rules/build_test.bzl b/rules/build_test.bzl index 34c8657..edcb50a 100644 --- a/rules/build_test.bzl +++ b/rules/build_test.bzl @@ -28,6 +28,7 @@ def build_test(name, targets, **kwargs): Typical usage: + ``` load("@bazel_skylib//rules:build_test.bzl", "build_test") build_test( name = "my_build_test", @@ -35,6 +36,7 @@ def build_test(name, targets, **kwargs): "//some/package:rule", ], ) + ``` Args: name: The name of the test rule.