Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>pytest-debugNew to Visual Studio Code? Get it now.
pytest-debug

pytest-debug

一点鑫得

|
1,342 installs
| (0) | Free
快捷调用pytest命令进行用例调测
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

pytestrun README

该插件用于快速调测pytest单元测试框架编写的测试用例

适用情况

适用于由pytest组织的测试用例的调试

使用说明

  1. 将光标停留在要调测的测试用例的首行,测试用例首行的代码形如“def test_xxxx():”;
  2. 安装插件后,Ctrl + Shif + P组合键打开命令面板,输入pytest run命令;
  3. vs code将打开终端并执行“pytest filepath -k 测试用例名”进行测试用例的调试。
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft