59

プラグインがインストールされているにもかかわらず、Nose でコード カバレッジが機能しないようです。

これを修正する方法についてのアイデアはありますか?

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
4

2 に答える 2

99

試しましたpip install coverageか?カバレッジ プラグインは、nose の依存関係ではない別のカバレッジ モジュールに依存するため、手動でインストールする必要があります。

于 2013-01-23T20:28:11.493 に答える