[Dart] Code coverage in Python: any update ?

Mathieu Malaterre mathieu.malaterre at gmail.com
Wed Apr 25 11:00:51 EDT 2007


Hello,

  Just checking on the status of support for python coverage. Actually
what do I need to do if I want to do it myself ?

Thanks for pointers,
-Mathieu

On 4/10/07, Mathieu Malaterre <mathieu.malaterre at gmail.com> wrote:
> Hi all,
>
>   Apparently this is something failry new, it is called trace.py and
> should be shipped with python 2.3 and up.
>
> $ python /usr/lib/python2.3/trace.py  -c  --coverdir=. --ignore-dir
> /usr/lib/python2.3 hello.py
>
> generates a file hello.cover:
>
> $ cat hello.cover
>        """
>        Comment #1
>     1: """
>     1: def untested():
>          print "untested"
>
>        """
>        Comment #2
>        """
>     1: def tested():
>     1:   print "tested"
>
>        """
>        Comment #3
>        """
>     1: if __name__ == '__main__':
>     1:   tested()
>
> See attached hello.py.
>
> HTH
> -Mathieu
>
> On 4/10/07, Blezek, Daniel J (GE, Research) <blezek at crd.ge.com> wrote:
> > Hi Mathieu,
> >
> >   There is support for Java code coverage (Cobertura).  I wasn't aware
> > of Python tools.  I think Andy should be able to help with the XML
> > formatting.
> >
> > -dan
> >
> > -----Original Message-----
> > From: dart-bounces+blezek=crd.ge.com at public.kitware.com
> > [mailto:dart-bounces+blezek=crd.ge.com at public.kitware.com] On Behalf Of
> > Mathieu Malaterre
> > Sent: Tuesday, April 10, 2007 6:53 AM
> > To: dart at public.kitware.com
> > Subject: [Dart] Code coverage in Python
> >
> > Hello,
> >
> >   Has anyone done code coverage with python and integrated that for Dart
> > submission ? The only code coverage suported right now is gcov, right ?
> >
> > thanks !
> >
> > --
> > Mathieu
> > Tel: +33 6 32 13 33 40
> > _______________________________________________
> > Dart mailing list
> > Dart at public.kitware.com
> > http://public.kitware.com/mailman/listinfo/dart
> >
>
>
> --
> Mathieu
> Tel: +33 6 32 13 33 40
>
>


-- 
Mathieu
Tel: +33 6 32 13 33 40


More information about the Dart mailing list