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

前端 未结 3 1057
醉梦人生
醉梦人生 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:17

    Note that in pydev 2.0, the coverage support changed, now, you should first open the coverage view and select the 'enable code coverage for new launches'... after that, any launch you do (regular or unit-test) will have coverage information being gathered (and the results inspection also became a bit more intuitive).

提交回复
热议问题