pants: use __defaults__
to propogate unit,integration,benchmarks tags on tests
#5853
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background
This is another part of introducing pants, as discussed in various TSC meetings.
Related PRs can be found in:
Overview of this PR
This adjusts the BUILD metadata for all of our
python_tests
targets so that they are tagged withunit
,integration
, orbenchmarks
. We can add other tags when/if we find something that will be generally useful.Once we are able to run tests via pants, pants can use this to select a subset of tests to run. For example:
Check out the docs for more powerful examples of how to use tags on the command line.
Relevant pants docs