[Ml-yokadi] Tests coverage
Sébastien Renard
Sebastien.Renard at digitalfox.org
Wed Nov 25 23:14:20 CET 2009
Le mercredi 25 novembre 2009 11:15:29, Aurélien Gâteau a écrit :
> Sébastien Renard a écrit :
> > Hello,
> >
> > I was playing with Pydev features and discover a nice module that make
> > code coverage.
> > When we launch all our unit tests, here the result. We are far from
> > covering everything. Average is 58% (real result is lower, unit test
> > coverage itslef is taken into account).
> > Some module are 100% (bugutils) and some are 0% (confcmd).
>
> Very interesting! How do you run this?
With Eclipse Pydev coverage tools. Very easy and usefull as you can after that
browse the code with markup on code that has been covered or not.
But I discover a standalone python module that produce same result with nice
html report. But no integration with my favourite overkilling python editor
;-)
http://nedbatchelder.com/code/coverage/
With, as stated and well explained in this site, 100% code coverage does not
lead to 0% bug ! Of course.
a+
--
Sébastien
More information about the Ml-yokadi
mailing list