Test view run buttons should "run what you see" #130522
Labels
feature-request
Request for new features or functionality
insiders-released
Patch has been released in VS Code Insiders
testing
Built-in testing support
verification-needed
Verification of issue is requested
verified
Verification succeeded
Milestone
Instead we should only run the displayed tests. The algorithm for this I currently use is:
Loop through the virtual test roots. For each test:
If the current subtree is marked as "included"
a. Then if this test is not visible in the tree, pass it to
TestRunRequest.exclude
Otherwise:
a. If this test can be used with the current test run profile (if any), and it does not have exactly one visible child, and it's either a leaf node or the majority of a children are visible, then: add this subtree to
TestRunRequest.include
b. The "not exactly one child" is used to avoid including parent tests who might only be visible because a child is visible and result in a large
exclude
set later, for example in this case we want to run only "ArrayQueue":For each child of the current test, go to (2)
The text was updated successfully, but these errors were encountered: