pycharm 中的 py.test 错误
Error in py.test in pycharm
当我在我的系统上进行 运行 pytest 时,它给出了一个错误:没有测试 运行 在 0.01 秒内。谁能告诉我这是因为我的代码错误还是其他原因。
输出是:
============================= test session starts ==============================
platform darwin -- Python 2.7.11, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /Users/Desktop, inifile:
collected 0 items
========================= no tests ran in 0.01 seconds =========================
进程已完成,退出代码为 0
我也有同样的问题,解决方法是更改 rootdir。
转到 Setting->tools->externaltools
并为您的 pyTest
设置参数 "$FileName$"
和工作目录 "$FileDir$"
当我在我的系统上进行 运行 pytest 时,它给出了一个错误:没有测试 运行 在 0.01 秒内。谁能告诉我这是因为我的代码错误还是其他原因。
输出是:
============================= test session starts ==============================
platform darwin -- Python 2.7.11, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /Users/Desktop, inifile:
collected 0 items
========================= no tests ran in 0.01 seconds =========================
进程已完成,退出代码为 0
我也有同样的问题,解决方法是更改 rootdir。
转到 Setting->tools->externaltools
并为您的 pyTest
"$FileName$"
和工作目录 "$FileDir$"