changed vscode test configuration to use the native testing api instead of the Test-Explorer
This commit is contained in:
parent
9a9b4ab95a
commit
de76415ac5
2 changed files with 11 additions and 16 deletions
6
.vscode/launch.json
vendored
6
.vscode/launch.json
vendored
|
|
@ -9,12 +9,6 @@
|
|||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"console": "integratedTerminal"
|
||||
},
|
||||
{
|
||||
"name": "Debug Tests",
|
||||
"type": "python",
|
||||
"request": "test",
|
||||
"console": "integratedTerminal",
|
||||
"justMyCode": false
|
||||
}
|
||||
|
|
|
|||
21
.vscode/settings.json
vendored
21
.vscode/settings.json
vendored
|
|
@ -1,24 +1,25 @@
|
|||
{
|
||||
"python.pythonPath": "python",
|
||||
"python.languageServer": "Pylance",
|
||||
// "python.testing.unittestEnabled": false,
|
||||
// "python.testing.nosetestsEnabled": false,
|
||||
// "python.testing.pytestEnabled": true,
|
||||
"pythonTestExplorer.testFramework": "pytest",
|
||||
|
||||
// configure code formating
|
||||
"python.formatting.provider": "black",
|
||||
"python.sortImports.path": "isort",
|
||||
"python.sortImports.args": [
|
||||
"--profile=black",
|
||||
],
|
||||
// "[python]": {
|
||||
// "editor.codeActionsOnSave": {
|
||||
// "source.organizeImports": true
|
||||
// }
|
||||
// }
|
||||
|
||||
// configure pylance
|
||||
"python.analysis.typeCheckingMode": "strict",
|
||||
"python.analysis.autoImportCompletions": false,
|
||||
"python.analysis.diagnosticSeverityOverrides": {
|
||||
"reportPrivateUsage": "information",
|
||||
"reportUntypedNamedTuple": "information",
|
||||
},
|
||||
|
||||
// configure pytest
|
||||
"python.testing.pytestArgs": [
|
||||
"tests"
|
||||
],
|
||||
"python.testing.unittestEnabled": false,
|
||||
"python.testing.pytestEnabled": true,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue