commit | 227369b14e493f98ed9f04bf86e512a7643aecf0 | [log] [tgz] |
---|---|---|
author | Richard Levasseur <rlevasseur@google.com> | Tue Jul 04 22:51:51 2023 -0700 |
committer | Richard Levasseur <rlevasseur@google.com> | Fri Jul 07 16:21:33 2023 -0700 |
tree | e32d99cafa0715162dab66a7c591c10d2c07b538 | |
parent | 3694f0e1f59e29f72fae4c3f4e6e84e35b04036b [diff] |
feat: Add StructSubject StructSubject is a subject to wrap structs and return their values as other subjects. This makes it easier to test ad-hoc struct values, such as ones returned by helper functions, because a dedicated subject implementation doesn't need to be written. All that needs to be provided are the attribute names and factory functions to handle them. Fixes https://github.com/bazelbuild/rules_testing/issues/53
rules_testing
provides frameworks and utilities to make testing Starlark code easier and convenient.
For detailed docs, see the docs website