Skip to content

Commit 3e11c29

Browse files
authored
Add the command 'Discover Unit Tests' (#1598)
Fixes #1474
1 parent b40cc2c commit 3e11c29

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

news/1 Enhancements/1474.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add the command 'Discover Unit Tests'.

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484
"onCommand:python.goToPythonObject",
8585
"onCommand:python.setLinter",
8686
"onCommand:python.enableLinting",
87-
"onCommand:python.createTerminal"
87+
"onCommand:python.createTerminal",
88+
"onCommand:python.discoverTests"
8889
],
8990
"main": "./out/client/extension",
9091
"contributes": {
@@ -187,6 +188,11 @@
187188
"title": "%python.command.python.runFailedTests.title%",
188189
"category": "Python"
189190
},
191+
{
192+
"command": "python.discoverTests",
193+
"title": "%python.command.python.discoverTests.title%",
194+
"category": "Python"
195+
},
190196
{
191197
"command": "python.execSelectionInTerminal",
192198
"title": "%python.command.python.execSelectionInTerminal.title%",

package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"python.command.python.selectAndRunTestFile.title": "Run Unit Test File ...",
1717
"python.command.python.runCurrentTestFile.title": "Run Current Unit Test File",
1818
"python.command.python.runFailedTests.title": "Run Failed Unit Tests",
19+
"python.command.python.discoverTests.title": "Discover Unit Tests",
1920
"python.command.python.execSelectionInTerminal.title": "Run Selection/Line in Python Terminal",
2021
"python.command.python.execSelectionInDjangoShell.title": "Run Selection/Line in Django Shell",
2122
"python.command.python.goToPythonObject.title": "Go to Python Object",

0 commit comments

Comments
 (0)