[Dart] Code coverage in Python
Mathieu Malaterre
mathieu.malaterre at gmail.com
Tue Apr 10 09:09:33 EDT 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello.py
Type: text/x-python
Size: 162 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/dart/attachments/20070410/e649f9f8/hello.py
More information about the Dart
mailing list