bazel-skylib/lib
David Sanderson ed7f03cde6
Enable unittest.suite to accept partial calls of test rules (#276)
* Enable unittest.suite to accept partial calls of rules

This permits using `unittest.suite` with test rules that have nondefault
attributes, while retaining compatibility with current usage.

For instance, this permits setting a `timeout` on each test in a
`unittest.suite`.  Previously, all tests in a `unittest.suite` would
have the default timeout, with no good way to alter this.  This
made it hard to eliminate all the warnings produced from using the
`--test_verbose_timeout_warnings` bazel option.

While timeouts were the motivation, the solution here is not specific
to timeouts. It will permit arbitrary additional arguments to the test
rules in a `unittest.suite`.

Fixes #98

* Respond to review feedback.

* Document a breaking change in bazel that this code needs to be aware of.
2020-11-12 21:04:39 -05:00
..
BUILD Enable unittest.suite to accept partial calls of test rules (#276) 2020-11-12 21:04:39 -05:00
collections.bzl Wrap invocation of dict.items() in list(). (#91) 2019-01-10 15:26:52 -05:00
dicts.bzl Accept kwargs in dicts.add() (#130) 2019-03-20 13:08:29 -04:00
new_sets.bzl Fix the comment to match the code. (#238) 2020-03-19 12:40:56 -04:00
old_sets.bzl Remove old_sets.bzl (#231) 2020-02-03 16:39:21 +01:00
partial.bzl Enable unittest.suite to accept partial calls of test rules (#276) 2020-11-12 21:04:39 -05:00
paths.bzl Reformat .bzl files with buildifier and add format check. 2018-06-13 10:58:35 -04:00
selects.bzl Fix type parsing errors on "always true" conditions. (#239) 2020-03-25 14:05:24 -04:00
sets.bzl Make sets.bzl point to new_sets.bzl instead of old_sets.bzl (#158) 2019-05-28 17:54:22 -04:00
shell.bzl Reformat .bzl files with buildifier and add format check. 2018-06-13 10:58:35 -04:00
structs.bzl Reformat .bzl files with buildifier and add format check. 2018-06-13 10:58:35 -04:00
types.bzl Add types.is_set() to test whether an arbitrary object is a set as defined by new_sets.bzl. (#181) 2019-09-17 10:21:44 -04:00
unittest.bzl Enable unittest.suite to accept partial calls of test rules (#276) 2020-11-12 21:04:39 -05:00
versions.bzl `print`->`fail` and suppress the warning in another case. (#177) 2019-07-22 13:25:00 -04:00