Skip to content

Commit

Permalink
Remove more test commands (#16314)
Browse files Browse the repository at this point in the history
* Remove select and run commands

* Remove commands from package json
  • Loading branch information
karthiknadig committed Jun 9, 2021
1 parent e835fa9 commit ee6b618
Show file tree
Hide file tree
Showing 19 changed files with 1 addition and 187 deletions.
28 changes: 0 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,9 @@
"onCommand:python.debugtests",
"onCommand:python.setInterpreter",
"onCommand:python.setShebangInterpreter",
"onCommand:python.viewTestUI",
"onCommand:python.viewLanguageServerOutput",
"onCommand:python.viewTestOutput",
"onCommand:python.viewOutput",
"onCommand:python.selectAndRunTestMethod",
"onCommand:python.selectAndDebugTestMethod",
"onCommand:python.selectAndRunTestFile",
"onCommand:python.runCurrentTestFile",
"onCommand:python.runFailedTests",
"onCommand:python.execSelectionInTerminal",
Expand Down Expand Up @@ -242,15 +238,6 @@
"title": "%python.command.python.refactorExtractMethod.title%",
"category": "Python Refactor"
},
{
"command": "python.viewTestOutput",
"title": "%python.command.python.viewTestOutput.title%",
"category": "Python",
"icon": {
"light": "resources/light/repl.svg",
"dark": "resources/dark/repl.svg"
}
},
{
"command": "python.viewLanguageServerOutput",
"title": "%python.command.python.viewLanguageServerOutput.title%",
Expand All @@ -266,21 +253,11 @@
"dark": "resources/dark/repl.svg"
}
},
{
"command": "python.selectAndRunTestMethod",
"title": "%python.command.python.selectAndRunTestMethod.title%",
"category": "Python"
},
{
"command": "python.selectAndDebugTestMethod",
"title": "%python.command.python.selectAndDebugTestMethod.title%",
"category": "Python"
},
{
"command": "python.selectAndRunTestFile",
"title": "%python.command.python.selectAndRunTestFile.title%",
"category": "Python"
},
{
"command": "python.runCurrentTestFile",
"title": "%python.command.python.runCurrentTestFile.title%",
Expand Down Expand Up @@ -552,11 +529,6 @@
"command": "python.runFailedTests",
"when": "view == python_tests && hasFailedTests && !busyTests",
"group": "navigation@2"
},
{
"command": "python.viewTestOutput",
"when": "view == python_tests",
"group": "navigation@5"
}
],
"view/item/context": [
Expand Down
3 changes: 0 additions & 3 deletions package.nls.de.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"python.command.python.setInterpreter.title": "Interpreter auswählen",
"python.command.python.refactorExtractVariable.title": "Variable extrahieren",
"python.command.python.refactorExtractMethod.title": "Methode extrahieren",
"python.command.python.viewTestOutput.title": "Unittest-Ausgabe anzeigen",
"python.command.python.selectAndRunTestMethod.title": "Unittest-Methode ausführen ...",
"python.command.python.selectAndDebugTestMethod.title": "Unittest-Debug-Methode ausführen ...",
"python.command.python.selectAndRunTestFile.title": "Unittest-Datei ausführen ...",
"python.command.python.runCurrentTestFile.title": "Ausgewählte Unittest-Datei ausführen",
"python.command.python.runFailedTests.title": "Fehlerhafte Unittests ausführen",
"python.command.python.discoverTests.title": "Unittests durchsuchen",
Expand Down
3 changes: 0 additions & 3 deletions package.nls.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"python.command.python.setInterpreter.title": "Seleccionar intérprete",
"python.command.python.refactorExtractVariable.title": "Extraer variable",
"python.command.python.refactorExtractMethod.title": "Extraer método",
"python.command.python.viewTestOutput.title": "Mostrar resultados de la prueba unitaria",
"python.command.python.selectAndRunTestMethod.title": "Método de ejecución de pruebas unitarias ...",
"python.command.python.selectAndDebugTestMethod.title": "Método de depuración de pruebas unitarias ...",
"python.command.python.selectAndRunTestFile.title": "Ejecutar archivo de prueba unitaria ...",
"python.command.python.runCurrentTestFile.title": "Ejecutar archivo de prueba unitaria actual",
"python.command.python.runFailedTests.title": "Ejecutar pruebas unitarias fallidas",
"python.command.python.discoverTests.title": "Encontrar pruebas unitarias",
Expand Down
3 changes: 0 additions & 3 deletions package.nls.fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"python.command.python.setInterpreter.title": "Sélectionner l'interpreteur",
"python.command.python.refactorExtractVariable.title": "Extraire la variable",
"python.command.python.refactorExtractMethod.title": "Extraire la méthode",
"python.command.python.viewTestOutput.title": "Afficher la sortie des tests unitaires",
"python.command.python.selectAndRunTestMethod.title": "Exécuter la méthode de test unitaire ...",
"python.command.python.selectAndDebugTestMethod.title": "Déboguer la méthode de test unitaire ...",
"python.command.python.selectAndRunTestFile.title": "Exécuter le fichier de test unitaire ...",
"python.command.python.runCurrentTestFile.title": "Exécuter le fichier de test unitaire courant",
"python.command.python.runFailedTests.title": "Exécuter les derniers test unitaires échoués",
"python.command.python.execSelectionInTerminal.title": "Exécuter la ligne/sélection dans un terminal Python",
Expand Down
3 changes: 0 additions & 3 deletions package.nls.it.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"python.command.python.setInterpreter.title": "Seleziona interprete",
"python.command.python.refactorExtractVariable.title": "Estrai variable",
"python.command.python.refactorExtractMethod.title": "Estrai metodo",
"python.command.python.viewTestOutput.title": "Mostra output dei test",
"python.command.python.selectAndRunTestMethod.title": "Esegui metodo di test ...",
"python.command.python.selectAndDebugTestMethod.title": "Esegui debug del metodo di test ...",
"python.command.python.selectAndRunTestFile.title": "Esegui file di test ...",
"python.command.python.runCurrentTestFile.title": "Esegui file di test attuale",
"python.command.python.runFailedTests.title": "Esegui test falliti",
"python.command.python.execSelectionInTerminal.title": "Esegui selezione/linea nel terminale di Python",
Expand Down
3 changes: 0 additions & 3 deletions package.nls.ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
"python.command.python.setInterpreter.title": "インタープリターを選択",
"python.command.python.refactorExtractVariable.title": "変数を抽出",
"python.command.python.refactorExtractMethod.title": "メソッドを抽出",
"python.command.python.viewTestOutput.title": "単体テストの出力を表示",
"python.command.python.selectAndRunTestMethod.title": "単体テストメソッドを実行...",
"python.command.python.selectAndDebugTestMethod.title": "単体テストメソッドをデバッグ...",
"python.command.python.selectAndRunTestFile.title": "単体テストファイルを実行...",
"python.command.python.runCurrentTestFile.title": "現在の単体テストファイルを実行",
"python.command.python.runFailedTests.title": "失敗した単体テストを実行",
"python.command.python.execSelectionInTerminal.title": "Python ターミナルで選択範囲/行を実行",
Expand Down
3 changes: 0 additions & 3 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@
"python.command.python.refactorExtractVariable.title": "Extract Variable",
"python.command.python.refactorExtractMethod.title": "Extract Method",
"python.command.python.viewOutput.title": "Show Output",
"python.command.python.viewTestOutput.title": "Show Test Output",
"python.command.python.viewLanguageServerOutput.title": "Show Language Server Output",
"python.command.python.selectAndRunTestMethod.title": "Run Test Method ...",
"python.command.python.selectAndDebugTestMethod.title": "Debug Test Method ...",
"python.command.python.selectAndRunTestFile.title": "Run Test File ...",
"python.command.python.runCurrentTestFile.title": "Run Current Test File",
"python.command.python.runFailedTests.title": "Run Failed Tests",
"python.command.python.discoverTests.title": "Discover Tests",
Expand Down
3 changes: 0 additions & 3 deletions package.nls.ko-kr.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
"python.command.python.setInterpreter.title": "인터프리터 선택",
"python.command.python.refactorExtractVariable.title": "변수 추출",
"python.command.python.refactorExtractMethod.title": "메서드 추출",
"python.command.python.viewTestOutput.title": "단위 테스트 결과 보기",
"python.command.python.selectAndRunTestMethod.title": "단위 테스트 메서드 실행 ...",
"python.command.python.selectAndDebugTestMethod.title": "단위 테스트 메서드 디버그 ...",
"python.command.python.selectAndRunTestFile.title": "단위 테스트 파일 실행 ...",
"python.command.python.runCurrentTestFile.title": "현재 단위 테스트 파일 실행",
"python.command.python.runFailedTests.title": "실패한 단위 테스트 실행",
"python.command.python.execSelectionInTerminal.title": "Python 터미널에서 선택 영역/줄 실행",
Expand Down
3 changes: 0 additions & 3 deletions package.nls.nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"python.command.python.setInterpreter.title": "Interpreter selecteren",
"python.command.python.refactorExtractVariable.title": "Variabelen selecteren",
"python.command.python.refactorExtractMethod.title": "Methode selecteren",
"python.command.python.viewTestOutput.title": "Unittest-resultaat laten zien",
"python.command.python.selectAndRunTestMethod.title": "Unittest-methode uitvoeren ...",
"python.command.python.selectAndDebugTestMethod.title": "Unittest-methode debuggen ...",
"python.command.python.selectAndRunTestFile.title": "Unittest-bestand uitvoeren ...",
"python.command.python.runCurrentTestFile.title": "Huidige unittest-bestand uitvoeren",
"python.command.python.runFailedTests.title": "Gefaalde unittests uitvoeren",
"python.command.python.discoverTests.title": "Unittests doorzoeken",
Expand Down
3 changes: 0 additions & 3 deletions package.nls.pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
"python.command.python.refactorExtractVariable.title": "Wyodrębnij zmienną",
"python.command.python.refactorExtractMethod.title": "Wyodrębnij metodę",
"python.command.python.viewOutput.title": "Pokaż wyniki",
"python.command.python.viewTestOutput.title": "Pokaż wyniki testów jednostkowych",
"python.command.python.selectAndRunTestMethod.title": "Uruchom metodę testów jednostkowych ...",
"python.command.python.selectAndDebugTestMethod.title": "Debuguj metodę testów jednostkowych ...",
"python.command.python.selectAndRunTestFile.title": "Uruchom plik z testami jednostkowymi ...",
"python.command.python.runCurrentTestFile.title": "Uruchom bieżący plik z testami jednostkowymi",
"python.command.python.runFailedTests.title": "Uruchom testy jednostkowe, które się nie powiodły",
"python.command.python.discoverTests.title": "Wyszukaj testy jednostkowe",
Expand Down
3 changes: 0 additions & 3 deletions package.nls.pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"python.command.python.setInterpreter.title": "Selecionar Interpretador",
"python.command.python.refactorExtractVariable.title": "Extrair Variável",
"python.command.python.refactorExtractMethod.title": "Extrair Método",
"python.command.python.viewTestOutput.title": "Exibir Resultados dos Testes Unitários",
"python.command.python.selectAndRunTestMethod.title": "Executar Testes Unitários do Método ...",
"python.command.python.selectAndDebugTestMethod.title": "Depurar Testes Unitários do Método ...",
"python.command.python.selectAndRunTestFile.title": "Executar Arquivo de Testes Unitários ...",
"python.command.python.runCurrentTestFile.title": "Executar o Arquivo de Testes Unitários Atual",
"python.command.python.runFailedTests.title": "Executar Testes Unitários com Falhas",
"python.command.python.discoverTests.title": "Descobrir Testes Unitários",
Expand Down
3 changes: 0 additions & 3 deletions package.nls.ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
"python.command.python.setInterpreter.title": "Выбрать интерпретатор",
"python.command.python.refactorExtractVariable.title": "Извлечь в переменную",
"python.command.python.refactorExtractMethod.title": "Извлечь в метод",
"python.command.python.viewTestOutput.title": "Показать вывод теста",
"python.command.python.selectAndRunTestMethod.title": "Запусть тестовый метод...",
"python.command.python.selectAndDebugTestMethod.title": "Отладить тестовый метод...",
"python.command.python.selectAndRunTestFile.title": "Запустить тестовый файл...",
"python.command.python.runCurrentTestFile.title": "Запустить текущий тестовый файл",
"python.command.python.runFailedTests.title": "Запустить непрошедшие тесты",
"python.command.python.discoverTests.title": "Обнаружить тесты",
Expand Down
3 changes: 0 additions & 3 deletions package.nls.tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"python.command.python.setInterpreter.title": "Bir Interpreter Seçin",
"python.command.python.refactorExtractVariable.title": "Değişken Çıkar",
"python.command.python.refactorExtractMethod.title": "Metot Çıkar",
"python.command.python.viewTestOutput.title": "Test Çıktısını Görüntüle",
"python.command.python.selectAndRunTestMethod.title": "Test Metodu Çalıştır",
"python.command.python.selectAndDebugTestMethod.title": "Test Metodu Debug Et",
"python.command.python.selectAndRunTestFile.title": "Bir Test Dosyası Seç ve Çalıştır",
"python.command.python.runCurrentTestFile.title": "Aktif Test Dosyasını Çalıştır",
"python.command.python.runFailedTests.title": "Başarısız Testleri Çalıştır",
"python.command.python.discoverTests.title": "Testleri Keşfet",
Expand Down
3 changes: 0 additions & 3 deletions package.nls.zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@
"python.command.python.refactorExtractVariable.title": "提取变量",
"python.command.python.refactorExtractMethod.title": "提取方法",
"python.command.python.viewOutput.title": "显示输出",
"python.command.python.viewTestOutput.title": "显示单元测试输出",
"python.command.python.viewLanguageServerOutput.title": "显示语言服务器输出",
"python.command.python.selectAndRunTestMethod.title": "运行单元测试方法...",
"python.command.python.selectAndDebugTestMethod.title": "调试单元测试方法...",
"python.command.python.selectAndRunTestFile.title": "运行单元测试文件...",
"python.command.python.runCurrentTestFile.title": "运行当前单元测试文件",
"python.command.python.runFailedTests.title": "运行失败的单元测试",
"python.command.python.discoverTests.title": "检测单元测试",
Expand Down
3 changes: 0 additions & 3 deletions package.nls.zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"python.command.python.setInterpreter.title": "選擇直譯器",
"python.command.python.refactorExtractVariable.title": "提取變數",
"python.command.python.refactorExtractMethod.title": "提取方法",
"python.command.python.viewTestOutput.title": "顯示單元測試輸出",
"python.command.python.selectAndRunTestMethod.title": "執行單元測試方法…",
"python.command.python.selectAndDebugTestMethod.title": "偵錯單元測試方法…",
"python.command.python.selectAndRunTestFile.title": "執行單元測試檔案…",
"python.command.python.runCurrentTestFile.title": "執行目前單元測試檔案",
"python.command.python.runFailedTests.title": "執行失敗的單元測試",
"python.command.python.execSelectionInTerminal.title": "在 Python 終端機中執行選定內容/行",
Expand Down
5 changes: 0 additions & 5 deletions src/client/common/application/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export interface ICommandNameArgumentTypeMapping extends ICommandNameWithoutArgu
[Commands.Sort_Imports]: [undefined, Uri];
[Commands.Exec_In_Terminal]: [undefined, Uri];
[Commands.Exec_In_Terminal_Icon]: [undefined, Uri];
[Commands.Tests_Select_And_Run_File]: [undefined, CommandSource];
[Commands.Tests_Run_Current_File]: [undefined, CommandSource];
[Commands.Tests_Stop]: [undefined, Uri];
[Commands.Test_Reveal_Test_Item]: [TestDataItem];
Expand All @@ -117,11 +116,7 @@ export interface ICommandNameArgumentTypeMapping extends ICommandNameWithoutArgu
// When command is invoked from a tree node, first argument is the node data.
[Commands.Tests_Discover]: [undefined | TestWorkspaceFolder, undefined | CommandSource, undefined | Uri];
[Commands.Tests_Run_Failed]: [undefined, CommandSource, Uri];
[Commands.Tests_Select_And_Debug_Method]: [undefined, CommandSource, Uri];
[Commands.Tests_Select_And_Run_Method]: [undefined, CommandSource, Uri];
[Commands.Tests_Configure]: [undefined, undefined | CommandSource, undefined | Uri];
[Commands.Tests_Picker_UI]: [undefined, undefined | CommandSource, Uri, TestFunction[]];
[Commands.Tests_Picker_UI_Debug]: [undefined, undefined | CommandSource, Uri, TestFunction[]];
// When command is invoked from a tree node, first argument is the node data.
[Commands.runTestNode]: [TestDataItem];
// When command is invoked from a tree node, first argument is the node data.
Expand Down
6 changes: 0 additions & 6 deletions src/client/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ export namespace Commands {
export const Exec_In_Terminal_Icon = 'python.execInTerminal-icon';
export const Exec_Selection_In_Terminal = 'python.execSelectionInTerminal';
export const Exec_Selection_In_Django_Shell = 'python.execSelectionInDjangoShell';
export const Tests_Picker_UI = 'python.selectTestToRun';
export const Tests_Picker_UI_Debug = 'python.selectTestToDebug';
export const Tests_Configure = 'python.configureTests';
export const Tests_Discover = 'python.discoverTests';
export const Tests_Discovering = 'python.discoveringTests';
Expand All @@ -47,10 +45,6 @@ export namespace Commands {
export const Tests_Stop = 'python.stopTests';
export const Test_Reveal_Test_Item = 'python.revealTestItem';
export const ViewOutput = 'python.viewOutput';
export const Tests_ViewOutput = 'python.viewTestOutput';
export const Tests_Select_And_Run_Method = 'python.selectAndRunTestMethod';
export const Tests_Select_And_Debug_Method = 'python.selectAndDebugTestMethod';
export const Tests_Select_And_Run_File = 'python.selectAndRunTestFile';
export const Tests_Run_Current_File = 'python.runCurrentTestFile';
export const Refactor_Extract_Variable = 'python.refactorExtractVariable';
export const Refactor_Extract_Method = 'python.refactorExtractMethod';
Expand Down
5 changes: 0 additions & 5 deletions src/client/testing/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ export interface ITestManagementService {
): Promise<void>;
stopTests(resource: Uri): Promise<void>;
displayStopUI(message: string): Promise<void>;
displayPickerUI(cmdSource: CommandSource, file: Uri, testFunctions: TestFunction[], debug?: boolean): Promise<void>;
runTestsImpl(
cmdSource: CommandSource,
resource?: Uri,
Expand All @@ -309,10 +308,6 @@ export interface ITestManagementService {
debug?: boolean,
): Promise<void>;
runCurrentTestFile(cmdSource: CommandSource): Promise<void>;

selectAndRunTestFile(cmdSource: CommandSource): Promise<void>;

selectAndRunTestMethod(cmdSource: CommandSource, resource: Uri, debug?: boolean): Promise<void>;
}

export interface ITestManagerService extends Disposable {
Expand Down
Loading

0 comments on commit ee6b618

Please sign in to comment.