commit | 1f5430a29180a374de86c143803b400222a0546a | [log] [tgz] |
---|---|---|
author | Richard Levasseur <rlevasseur@google.com> | Thu Mar 23 03:24:10 2023 -0700 |
committer | Blaze Rules Copybara <blaze-rules@google.com> | Thu Mar 23 03:24:35 2023 -0700 |
tree | 20aaa425fd1c163c369b6898d9e8e8f13ac42a39 | |
parent | 8a062af0a03d6b9ee8fe1ec6e7500ac815aef446 [diff] |
tests: add DepsetFileSubject.not_contains test This is to prevent regressions as found by the latest refactoring. * Also fixes a bug in the test's `_assert_failure` function: it was using Skylib's unittest.bzl assert functions, which assume a unittest.bzl-style `env` value, and would error because the `env.failures` attribute was removed a few changes ago. Fixed by switching it to use the rule_testing analysis_test-created env object `env.fail` api to register failures. PiperOrigin-RevId: 518812864
rules_testing
provides frameworks and utilities to make testing Starlark rules easier and convenient.
For detailed docs, see the docs directory.