Can't get Coverage to work in PyDev, “File has no statistics”

你说的曾经没有我的故事 提交于 2019-12-13 16:15:32

问题


I can't get Coverage to work with PyDev. Every file I run shows up with: "File has no statistics."

I'm following the instructions by checking 'Enable code coverage for new launches', and dragging the folder to analyze over to the Code Coverage window.

I've successfully installed coverage. After that, I refreshed my Python Interpreter settings, where the coverage folder shows up automatically.

I've also tried to add the coverage folder to my project's External Libraries. Didn't work either...

Thanks in advance for any tips that might guide me in the right direction.

  • Coverage version 3.5.2 (also tried the recommended 3.4 to no avail)
  • PyDev version: 2.6.0
  • Eclipse version: 3.7.2

回答1:


This may be due to your file path containing spaces. See bug report here.



来源:https://stackoverflow.com/questions/12130124/cant-get-coverage-to-work-in-pydev-file-has-no-statistics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!