pycharm - 如何在 GoLand IDE 中调试/运行 pytest?
问题描述
我正在尝试在独立终端中使用 py.test 运行 python 测试,它工作得非常好。
但是当我尝试在 GoLandIDE 中运行相同的 pytests 时(通过选择 test method ,右键单击 -> run as 或 debug as ,测试不起作用并以以下输出退出。
任何指针都会非常有帮助。谢谢你。
/usr/bin/python3.7 /home/vagrant/go_workspace/src/github.com/mytests/tests/test_permissions_account.py
Process finished with exit code 0
/usr/bin/python3.7 /home/vagrant/.GoLand2019.2/config/plugins/python-ce/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 46219 --file /home/vagrant/go_workspace/src/github.com/mytest/tests/test_permissions_account.py
pydev debugger: process 21581 is connecting
Connected to pydev debugger (build 192.7142.48)
Process finished with exit code 0
解决方案
推荐阅读
- kotlin-js - dceTask keep 不保留定义的类
- c# - 使用 Lambda 或 Linq 根据子表获取数据
- git - 如何配置 travis ci 以运行 Angular 7 构建和测试
- android - Cloudant 的选择器不可打包
- java - 如果作为参数传递的数组中的任何值小于 0,则异常
- linux - amazon ec2 linux - 为什么 ec2 istalce 中的 docker 安装失败
- java - SpringBoot UserDetailsService loadUserByUsername 方法从不使用自定义 WebSecurityConfigurerAdapter 调用
- java - 是否可以从主屏幕小部件访问 MainActivity 中的方法?
- c# - 如何在 catch 中使用变量输入?
- python - 如何按日期在特定 Outlook 收件箱中收到电子邮件?