Skip to content

Commit 6311efe

Browse files
author
Kartik Raj
authored
Added action buttons to top of Test Explorer (microsoft#4327)
* Added buttons * news entry * Display test activity only when tests have been discovered * News entry * code reviews * code review * reverting few changes
1 parent 7d702c3 commit 6311efe

8 files changed

Lines changed: 39 additions & 6 deletions

File tree

news/1 Enhancements/4275.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added action buttons to top of Test Explorer

package.json

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,20 @@
170170
{
171171
"command": "python.runtests",
172172
"title": "%python.command.python.runtests.title%",
173-
"category": "Python"
173+
"category": "Python",
174+
"icon": {
175+
"light": "resources/light/start.svg",
176+
"dark": "resources/dark/start.svg"
177+
}
174178
},
175179
{
176180
"command": "python.debugtests",
177181
"title": "%python.command.python.debugtests.title%",
178-
"category": "Python"
182+
"category": "Python",
183+
"icon": {
184+
"light": "resources/light/debug.svg",
185+
"dark": "resources/dark/debug.svg"
186+
}
179187
},
180188
{
181189
"command": "python.execInTerminal",
@@ -230,12 +238,20 @@
230238
{
231239
"command": "python.runFailedTests",
232240
"title": "%python.command.python.runFailedTests.title%",
233-
"category": "Python"
241+
"category": "Python",
242+
"icon": {
243+
"light": "resources/light/start-failed.svg",
244+
"dark": "resources/dark/start-failed.svg"
245+
}
234246
},
235247
{
236248
"command": "python.discoverTests",
237249
"title": "%python.command.python.discoverTests.title%",
238-
"category": "Python"
250+
"category": "Python",
251+
"icon": {
252+
"light": "resources/light/refresh.svg",
253+
"dark": "resources/dark/refresh.svg"
254+
}
239255
},
240256
{
241257
"command": "python.configureTests",
@@ -578,9 +594,21 @@
578594
}
579595
],
580596
"view/title": [
597+
{
598+
"command": "python.debugtests",
599+
"group": "navigation"
600+
},
581601
{
582602
"command": "python.runtests",
583603
"group": "navigation"
604+
},
605+
{
606+
"command": "python.discoverTests",
607+
"group": "navigation"
608+
},
609+
{
610+
"command": "python.runFailedTests",
611+
"group": "navigation"
584612
}
585613
],
586614
"view/item/context": [

resources/dark/refresh.svg

Lines changed: 1 addition & 0 deletions
Loading

resources/dark/start-failed.svg

Lines changed: 1 addition & 0 deletions
Loading

resources/dark/start.svg

Lines changed: 1 addition & 1 deletion
Loading

resources/light/refresh.svg

Lines changed: 1 addition & 0 deletions
Loading

resources/light/start-failed.svg

Lines changed: 1 addition & 0 deletions
Loading

resources/light/start.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)