bazelbuild / rules_testing

Starlark testing framework and utility libraries
https://rules-testing.readthedocs.io/
Apache License 2.0
21 stars 5 forks source link

feat: allow custom target-under-test attributes #78

Closed copybara-service[bot] closed 9 months ago

copybara-service[bot] commented 9 months ago

feat: allow custom target-under-test attributes

This allows customizing what attributes are considered a target under test, i.e. that they have aspects, config settings, etc applied. This allows having multiple targets be tested, which is useful for comparing targets in different configurations, multiple targets with a custom configuration, or some combination of that.

When this is used, the implementation function is passed a struct of the targets under test, keyed by their attribute name, instead of the singular target under test.

Fixes https://github.com/bazelbuild/rules_testing/issues/67