in mac terminal
$ coverage help
Coverage.py, version 3.5
Measure, collect, and report on code coverage in Python programs.
While in the eclipse, I encounter error as follows: please give a hand
Error: coverage module could not be imported
Please make sure that the coverage module (http://nedbatchelder.com/code/coverage/)
is properly installed in your interpreter: /usr/bin/python
Traceback (most recent call last):
File "/Users/***/eclipse/plugins/org.python.pydev.debug_2.2.0.2011062419/pysrc/pydev_coverage.py", line 34, in execute
import coverage #@UnresolvedImport
ImportError: No module named coverage
Make sure you have the correct
PYTHONPATHvariable set in your project settings. To set the path right click on the project in the package explorer and openProperties. UnderPyDev - PYTHONPATHyou should find the entries, which have to be set to the correct locations.