bazel-skylib/tests
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
..
copy_file copy_file: Add parameter to allow symlinks (#252) 2020-07-10 14:08:02 -04:00
diff_test Fix diff_test when filepath includes external (#241) 2020-04-14 19:04:34 +02:00
native_binary Delete maprule. Fix Buildifier lint errors. (#192) 2019-09-17 14:03:22 +02:00
run_binary Delete maprule. Fix Buildifier lint errors. (#192) 2019-09-17 14:03:22 +02:00
select_file Add license and copyright notice (#245) 2020-04-15 12:57:49 +02:00
write_file write_file: support different line endings (#150) 2019-05-09 15:29:44 +02:00
BUILD Depend on bzl_library, not on individual bzl files (#244) 2020-04-03 16:54:55 +02:00
analysis_test_test.sh Minor formatting changes plus doc updates (#147) 2019-05-08 16:34:47 +02:00
build_test_tests.bzl Address lint errors (#254) 2020-06-19 19:49:52 +02:00
collections_tests.bzl unittest.bzl: supports Windows (#84) 2018-12-04 16:14:08 +01:00
common_settings_test.sh Remove --experimental_build_setting_api usage (#249) 2020-06-24 11:31:57 -04:00
dicts_tests.bzl Accept kwargs in dicts.add() (#130) 2019-03-20 13:08:29 -04:00
new_sets_tests.bzl unittest.bzl: supports Windows (#84) 2018-12-04 16:14:08 +01:00
partial_tests.bzl Enable unittest.suite to accept partial calls of test rules (#276) 2020-11-12 21:04:39 -05:00
paths_tests.bzl Add absolute path tests for Windows (#230) 2020-02-06 11:54:31 -05:00
selects_tests.bzl Address latent buildifier issues. (#278) 2020-09-25 22:32:06 +02:00
shell_tests.bzl Windows: fix tests for native test wrapper (#129) 2019-03-26 10:52:27 +01:00
structs_tests.bzl unittest.bzl: supports Windows (#84) 2018-12-04 16:14:08 +01:00
types_tests.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.bash Add basic shell testing for unittest.bzl (#108) 2019-02-11 17:18:56 -05:00
unittest_test.sh Enable unittest.suite to accept partial calls of test rules (#276) 2020-11-12 21:04:39 -05:00
unittest_tests.bzl Enable unittest.suite to accept partial calls of test rules (#276) 2020-11-12 21:04:39 -05:00
versions_tests.bzl unittest.bzl: supports Windows (#84) 2018-12-04 16:14:08 +01:00