Created
November 1, 2022 04:22
-
-
Save BroHui/9e4e2e194252eea745f7a541cada7a32 to your computer and use it in GitHub Desktop.
VSCode python & pytest launch.json sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 使用 IntelliSense 了解相关属性。 | |
// 悬停以查看现有属性的描述。 | |
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Python: Current File", | |
"type": "python", | |
"request": "launch", | |
"program": "${file}", | |
"console": "integratedTerminal", | |
"justMyCode": true | |
}, | |
{ | |
"name": "Pytest: Current File", | |
"type": "python", | |
"request": "launch", | |
"args": [ | |
"${fileBasenameNoExtension}_test.py" | |
], | |
"module": "pytest", | |
"console": "integratedTerminal", | |
"cwd": "${fileDirname}", | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment