[TIP] [Fwd: Re: coverage reporting]

David Dahl ddahl at ilm.com
Mon Aug 6 10:54:21 PDT 2007


Titus Brown wrote:
>On Mon, Aug 06, 2007 at 10:28:37AM -0700, David Dahl wrote:
>-> forgot to "reply all"
>
>
>-> That seems to output the figleaf data no problem, when I run 
>-> figleaf2html i get this:
>-> 
>-> > /dept/training/testing/usr/bin/figleaf2html -d ~/figleaf_reports
>-> Traceback (most recent call last):
>->  File "/dept/training/testing/usr/bin/figleaf2html", line 7, in ?
>->    sys.exit(
>->  File "usr/lib64/python2.4/site-packages/figleaf/htmlizer.py", line 
>-> 199, in main
>->  File "/home/ddahl/python/lois/lib/lois/__init__.py", line 276, in 
>-> combine_coverage
>-> 
>-> AttributeError: CodeTracer instance has no attribute 'keys'
>-> 
>-> Not sure what is going on here.
>
>rm .figleaf
>
>and do it over again.  You can't combine the two types of coverage,
>unfortunately, and I stupidly chose the same output file name.
>
>--titus
>
>  
same problem:

I did the following:

rm ~/.figleaf

 > nosetests -vv --with-figleafsections test/

( i checked to make sure there is a .figleaf created here )

/dept/training/testing/usr/bin/figleaf2html -d ~/figleaf_reports

same thing:

 > /dept/training/testing/usr/bin/figleaf2html -d ~/figleaf_reports
Traceback (most recent call last):
  File "/dept/training/testing/usr/bin/figleaf2html", line 7, in ?
    sys.exit(
  File "usr/lib64/python2.4/site-packages/figleaf/htmlizer.py", line 
199, in main
  File "/home/ddahl/python/lois/lib/lois/__init__.py", line 276, in 
combine_coverage

AttributeError: CodeTracer instance has no attribute 'keys'

is this dying inside the CodeTracer class in "gather_files"?

-- 
David Dahl

Content Management Software Engineer

Industrial Light + Magic

415-746-3890




More information about the testing-in-python mailing list