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
1 file changed
tree: 20aaa425fd1c163c369b6898d9e8e8f13ac42a39
  1. .bazelci/
  2. .bcr/
  3. .github/
  4. docgen/
  5. docs/
  6. e2e/
  7. lib/
  8. tests/
  9. .bazelignore
  10. .bazelrc
  11. addlicense.sh
  12. AUTHORS
  13. BUILD
  14. CODEOWNERS
  15. CONTRIBUTING.md
  16. LICENSE
  17. MODULE.bazel
  18. README.md
  19. RELEASING.md
  20. WORKSPACE.bazel
  21. WORKSPACE.bzlmod
README.md

Buildstatus

Framworks and utilities for testing Bazel Starlark rules

rules_testing provides frameworks and utilities to make testing Starlark rules easier and convenient.

For detailed docs, see the docs directory.