-
Notifications
You must be signed in to change notification settings - Fork 7
Description
I wanted a tree-like quickpic mechanism and related user extension. I hacked up the capabilities in the PR below contained in my fork, which works really well for our use cases, but I wonder whether you all have plans for something similar or any interest in taking this change as well? The main downside (functionally) is that it's dependent on PyTest output in that it looks for "::" as the separator between file::class::test output produced by PyTest --collect-only mode in order to construct the levels in the file/test-class/test tree. Should be easy to make that a setting though.
The idea here was to be able to select file, class, or test to run an augmented bazel PyTest target. Selecting the file selects all contained classes and tests. Selecting a class selects any contained tests. Parent node selection state is toggled to reflect the collective selection state of all children (ie. unselecting one node in the tree unselects the parent node state too, but without affecting other siblings).
I'm just looking for feedback from the maintainers here about whether there is a better way to go about doing this in BlueBazel or whether you're planning on any kind of test case hierarchical treeview support like this in the future before we put any more work into this.
https://github.com/charleswoerner-wayve/bluebazel/pull/1/files