Skip to content

feat: Allow setting common rule attributes for analysis tests#55

Merged
copybara-service[bot] merged 1 commit intobazelbuild:masterfrom
rickeylev:common.attrs
Jul 7, 2023
Merged

feat: Allow setting common rule attributes for analysis tests#55
copybara-service[bot] merged 1 commit intobazelbuild:masterfrom
rickeylev:common.attrs

Conversation

@rickeylev
Copy link
Collaborator

This allows setting common rule attributes such as tags, visibility, target_compatible_with, etc. Before this change, this was only possibly by manually invoking the underlying testing.analysis_test() rule to pass the attr_values arg. After this change, it is possible to do the equivalent by directly passing the corresponding attribute by name instead of nesting it within attr_values.

This allows setting several useful attributes, such as tags, target_compatible_with, etc.

Fixes #43

@rickeylev rickeylev force-pushed the common.attrs branch 4 times, most recently from c7db3df to 2fc8747 Compare July 3, 2023 07:06
This allows setting common rule attributes such as tags, visibility,
target_compatible_with, etc. Before this change, this was only possibly
by  manually invoking the underlying `testing.analysis_test()` rule to
pass the `attr_values` arg. After this change, it is possible to do the
equivalent by directly passing the corresponding attribute by name
instead of nesting it within `attr_values`.

This allows setting several useful attributes, such as tags,
target_compatible_with, etc.

Fixes bazelbuild#43
@copybara-service copybara-service bot merged commit 3694f0e into bazelbuild:master Jul 7, 2023
@rickeylev rickeylev deleted the common.attrs branch July 7, 2023 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add target_compatible_with to analysis tests

1 participant