On Sun, Jun 15, 2008 at 2:20 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I run the sympy (revision 2138) through figleaf:
>
> http://darcs.idyll.org/~t/projects/figleaf/doc/
>
> and the results are here:
>
> http://coverage.sympy.org/
>
> Steps to reproduce:
>
> # install figleaf
> $ cd sympy
> $ figleaf /usr/bin/py.test sympy/
> $ python t.py > files
> $ figleaf2html -f files
> $ epiphany html/index.html
>
> where the file t.py (attached) generates the files that should endup
> in the final report (if you omit it, all files will be included,
> including test files and standard pytho library files).
I forgot to attach the file.
O.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---
from glob import glob
def get_paths(level=15, wild="test_*.py"):
"""
Generates a set of paths for testfiles searching.
Example:
>>> get_paths(2)
['sympy/test_*.py', 'sympy/*/test_*.py', 'sympy/*/*/test_*.py']
>>> get_paths(6)
['sympy/test_*.py', 'sympy/*/test_*.py', 'sympy/*/*/test_*.py',
'sympy/*/*/*/test_*.py', 'sympy/*/*/*/*/test_*.py',
'sympy/*/*/*/*/*/test_*.py', 'sympy/*/*/*/*/*/*/test_*.py']
"""
wildcards = ["/"]
for i in range(level):
wildcards.append(wildcards[-1]+"*/")
p = ["sympy"+x+wild for x in wildcards]
return p
f = []
for x in get_paths():
f.extend(glob(x))
g = []
for x in get_paths(wild="*.py"):
g.extend(glob(x))
h = []
for x in g:
if x not in f:
if x.find("thirdparty/pyglet/") == -1:
h.append(x)
for x in h:
print x