diff --git a/news/1 Enhancements/1474.md b/news/1 Enhancements/1474.md new file mode 100644 index 000000000000..a439ceb3d20a --- /dev/null +++ b/news/1 Enhancements/1474.md @@ -0,0 +1 @@ +Add the command 'Discover Unit Tests'. diff --git a/package.json b/package.json index e2a93ec80a2c..3a782b1a13d5 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,8 @@ "onCommand:python.goToPythonObject", "onCommand:python.setLinter", "onCommand:python.enableLinting", - "onCommand:python.createTerminal" + "onCommand:python.createTerminal", + "onCommand:python.discoverTests" ], "main": "./out/client/extension", "contributes": { @@ -187,6 +188,11 @@ "title": "%python.command.python.runFailedTests.title%", "category": "Python" }, + { + "command": "python.discoverTests", + "title": "%python.command.python.discoverTests.title%", + "category": "Python" + }, { "command": "python.execSelectionInTerminal", "title": "%python.command.python.execSelectionInTerminal.title%", diff --git a/package.nls.json b/package.nls.json index f1fd181184ab..e951092e3762 100644 --- a/package.nls.json +++ b/package.nls.json @@ -16,6 +16,7 @@ "python.command.python.selectAndRunTestFile.title": "Run Unit Test File ...", "python.command.python.runCurrentTestFile.title": "Run Current Unit Test File", "python.command.python.runFailedTests.title": "Run Failed Unit Tests", + "python.command.python.discoverTests.title": "Discover Unit Tests", "python.command.python.execSelectionInTerminal.title": "Run Selection/Line in Python Terminal", "python.command.python.execSelectionInDjangoShell.title": "Run Selection/Line in Django Shell", "python.command.python.goToPythonObject.title": "Go to Python Object",