aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/docs/skylark
diff options
context:
space:
mode:
authorGravatar Laurent Le Brun <laurentlb@google.com>2015-06-24 15:21:50 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-06-25 06:47:09 +0000
commit8d4ffc4b60cc7630f337cab762ac27630d604f98 (patch)
treea590dd29a60041d5d95ea6dc189c16695b6c4120 /site/docs/skylark
parent50d124bb2819706ca5658fea998f4493b41bb86b (diff)
Skylark: Document default attributes for test rules.
Add 'args' to the list (for consistency with native rules). -- MOS_MIGRATED_REVID=96776585
Diffstat (limited to 'site/docs/skylark')
-rw-r--r--site/docs/skylark/rules.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/site/docs/skylark/rules.md b/site/docs/skylark/rules.md
index cbab9df806..671b1bcd2f 100644
--- a/site/docs/skylark/rules.md
+++ b/site/docs/skylark/rules.md
@@ -29,8 +29,9 @@ If an attribute starts with `_`, it is private and users cannot set it. It
is useful in particular for label attributes (your rule will have an
implicit dependency on this label).
-The following attributes are implicitly added to every rule: `name`,
-`visibility`, `deprecation`, `tags`, `testonly`, `features`.
+The following attributes are implicitly added to every rule: `deprecation`,
+`features`, `name`, `tags`, `testonly`, `visibility`. Test rules also have the
+following attributes: `args`, `flaky`, `local`, `shard_count`, `size`, `timeout`.
To access an attribute, use `ctx.attr.<attribute_name>`. The name and the
package of a rule are available with `ctx.label.name` and `ctx.label.package`.