From 8d4ffc4b60cc7630f337cab762ac27630d604f98 Mon Sep 17 00:00:00 2001 From: Laurent Le Brun Date: Wed, 24 Jun 2015 15:21:50 +0000 Subject: Skylark: Document default attributes for test rules. Add 'args' to the list (for consistency with native rules). -- MOS_MIGRATED_REVID=96776585 --- site/docs/skylark/rules.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'site/docs/skylark') 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.`. The name and the package of a rule are available with `ctx.label.name` and `ctx.label.package`. -- cgit v1.2.3