-
Notifications
You must be signed in to change notification settings - Fork 38.3k
Description
- Filter the Test Explorer View, e.g. to show only the active document
- Use the "run all" button
- All tests are run, even ones you don't see
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 toTestRunRequest.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 toTestRunRequest.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 largeexcludeset later, for example in this case we want to run only "ArrayQueue":
-
For each child of the current test, go to (2)