changed vscode test configuration to use the native testing api instead of the Test-Explorer

This commit is contained in:
Tim Rid 2022-02-13 17:02:46 +01:00
parent 9a9b4ab95a
commit de76415ac5
2 changed files with 11 additions and 16 deletions

6
.vscode/launch.json vendored
View file

@ -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
View file

@ -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,
}