[From nobody Mon Aug 6 10:28:47 2007 Message-ID: <46B75A0A.4060805@ilm.com> Date: Mon, 06 Aug 2007 10:27:38 -0700 From: David Dahl <ddahl@ilm.com> User-Agent: Mozilla Thunderbird 1.0 (X11/20041207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kumar McMillan <kumar.mcmillan@gmail.com> Subject: Re: [TIP] coverage reporting References: <46B2088B.6090907@ilm.com> <b571660a0708060850l5d92c65dsc481eb37a279a232@mail.gmail.com> In-Reply-To: <b571660a0708060850l5d92c65dsc481eb37a279a232@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Kumar McMillan wrote: >On 8/2/07, David Dahl <ddahl@ilm.com> wrote: > >>The nose/coverage.py reports looks great, but when I use >>figleaf it seems like the (html) report generated is doing coverage on >>the tests and not the package I am testing. here is how I am invoking it: >> >>----------------------------------------- >>import sys >> >>import figleaf >>import nose >> >>args = sys.argv >> >>figleaf.start() >> >>nose.run(argv=args) >> >>figleaf.stop() >> >>figleaf.write_coverage('.figleaf') >> > >[Hi Dave] > >Have you tried using the pinocchio plugin (--with-figleafsections) directly? >http://darcs.idyll.org/~t/projects/pinocchio/doc/ > > 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. -- David Dahl Content Management Software Engineer Industrial Light + Magic 415-746-3890 ]