Skip to content
| Marketplace
Sign in
Visual Studio Code
>
Other
>
pytest-debug
New to Visual Studio Code?
Get it now.
pytest-debug
一点鑫得
|
1,063 installs
|
(
0
)
|
Free
快捷调用pytest命令进行用例调测
Installation
Launch VS Code Quick Open (
Ctrl+P
), paste the following command, and press enter.
Copy
Copied to clipboard
More Info
Overview
Version History
Q & A
Rating & Review
pytestrun README
该插件用于快速调测pytest单元测试框架编写的测试用例
适用情况
适用于由pytest组织的测试用例的调试
使用说明
将光标停留在要调测的测试用例的首行,测试用例首行的代码形如“def test_xxxx():”;
安装插件后,Ctrl + Shif + P组合键打开命令面板,输入pytest run命令;
vs code将打开终端并执行“pytest filepath -k 测试用例名”进行测试用例的调试。