Skip to content

Commit 75c321c

Browse files
Enable running tests for folders in tests explorer (microsoft#15758)
* Enable running tests for folders * Add news entry * Update news/1 Enhancements/15862.md Co-authored-by: Karthik Nadig <kanadig@microsoft.com> Co-authored-by: Karthik Nadig <kanadig@microsoft.com>
1 parent 5824f51 commit 75c321c

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

news/1 Enhancements/15862.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Allow running tests for all files within directories from test explorer.
2+
(thanks [Vladimir Kotikov](https://github.com/vladimir-kotikov))

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,16 @@
605605
"command": "python.runTestNode",
606606
"when": "view == python_tests && viewItem == suite && !busyTests",
607607
"group": "inline@0"
608+
},
609+
{
610+
"command": "python.debugTestNode",
611+
"when": "view == python_tests && viewItem == folder && !busyTests",
612+
"group": "inline@1"
613+
},
614+
{
615+
"command": "python.runTestNode",
616+
"when": "view == python_tests && viewItem == folder && !busyTests",
617+
"group": "inline@0"
608618
}
609619
]
610620
},

src/client/testing/common/services/testsStatusService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export class TestsStatusUpdaterService implements ITestsStatusUpdaterService {
7070
return;
7171
}
7272
const itemsRunning = [
73+
...(testsToRun.testFolder || []),
7374
...(testsToRun.testFile || []),
7475
...(testsToRun.testSuite || []),
7576
...(testsToRun.testFunction || []),

0 commit comments

Comments
 (0)