How to fix Python nose: coverage unavailable: unable to import coverage module

It seems I can’t get the code using Nose, despite having a plugin.

Any ideas on how to fix this?

12:15:25 ~/sandbox/ec$ nosetests --plugins Plugin xunit Plugin deprecated Plugin skip Plugin multiprocess Plugin failuredetail Plugin capture Plugin logcapture Plugin coverage Plugin attributeselector Plugin doctest Plugin profile Plugin id Plugin allmodules Plugin collect-only Plugin isolation Plugin pdb 12:15:34 ~/sandbox/ec$ nosetests -v --with-coverage nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module tests.edgecast_client_tests.test_log ... ok ---------------------------------------------------------------------- Ran 1 test in 0.206s OK 
+46
python nose coverage.py python-coverage
Jan 23 Answered 13 '13 at
source share
1 answer

Have you tried pip install coverage ? The coverage plugin depends on a separate coverage module, which is independent of the nose, so you must install it manually.

+76
Jan 23 '13 at
source share



All Articles