bazelbuild / bazel-skylib

Common useful functions and rules for Bazel
https://bazel.build/
Apache License 2.0
387 stars 180 forks source link

Improve getting actions from the target under test #468

Open ahumesky opened 11 months ago

ahumesky commented 11 months ago

Improve getting actions from the target under test:

  1. Add an keyword "mnemonic" parameter to analysistest.target_actions() to filter actions by mnemonic.

  2. Add analysistest.target_action(env, mnemonic=None, output_ending_with=None) to get a single action by mnemonic or by one of its outputs.