问题
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