Skip to content

Commit 49067d4

Browse files
committed
Integrated unit tests #239
1 parent cd99db8 commit 49067d4

36 files changed

Lines changed: 4975 additions & 173 deletions

package.json

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@
3636
"onLanguage:python",
3737
"onCommand:python.sortImports",
3838
"onCommand:python.runtests",
39-
"onCommand:python.setInterpreter"
39+
"onCommand:python.setInterpreter",
40+
"onCommand:python.viewTests",
41+
"onCommand:python.discoverTests",
42+
"onCommand:python.runFailedTests"
4043
],
4144
"main": "./out/client/extension",
4245
"contributes": {
@@ -71,6 +74,21 @@
7174
"command": "python.refactorExtractMethod",
7275
"title": "Extract Method",
7376
"category": "Refactor"
77+
},
78+
{
79+
"command": "python.viewTests",
80+
"title": "View Test UI",
81+
"category": "Python"
82+
},
83+
{
84+
"command": "python.discoverTests",
85+
"title": "Discover Unit Tests",
86+
"category": "Python"
87+
},
88+
{
89+
"command": "python.runFailedTests",
90+
"title": "Run Failed Unit Tests",
91+
"category": "Python"
7492
}
7593
],
7694
"menus": {
@@ -87,6 +105,12 @@
87105
"group": "Refactor",
88106
"when": "editorHasSelection"
89107
}
108+
],
109+
"explorer/context": [
110+
{
111+
"command": "python.runtests",
112+
"group": "Python"
113+
}
90114
]
91115
},
92116
"debuggers": [
@@ -612,7 +636,8 @@
612636
"vscode-debugprotocol": "^1.0.1",
613637
"vscode-extension-telemetry": "0.0.5",
614638
"vscode-languageclient": "^1.1.0",
615-
"vscode-languageserver": "^1.1.0"
639+
"vscode-languageserver": "^1.1.0",
640+
"xml2js": "^0.4.17"
616641
},
617642
"devDependencies": {
618643
"retyped-diff-match-patch-tsd-ambient": "^1.0.0-0",

0 commit comments

Comments
 (0)