How to get unit test coverage results in Eclipse + Pydev?

前端 未结 3 1040
醉梦人生
醉梦人生 2020-12-28 20:40

I know Eclipse + PyDev has an option Run As => 3 Python Coverage. But all it reports is:

Ran 6 tests in 0.001s

OK

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-28 21:10

    See if this helps http://www.machine-envy.com/blog/2006/07/29/automated-python-testing-with-nose-and-eclipse/

    It uses nosetests with the –with-coverage option.

提交回复
热议问题