[cse491] figleaf shell script
C. Titus Brown
ctb at msu.edu
Mon Nov 9 17:17:33 PST 2009
On Mon, Nov 09, 2009 at 06:53:07PM -0500, Tim Miller wrote:
> So I noticed that figleaf will aggregate ALL past rest results. What this
> means is that if you had code coverage of some line at one point and then
> change your code and no longer have coverage of that line, that line WILL
> STILL BE GREEN. To fix this delete the .figleaf file in your trunk
> directory each time you run figleaf. Annoying? yes. So make a shell script
> to deal with it. Mine looks like this:
>
>
> #! /bin/bash
> rm .figleaf
> figleaf /user/ctb/install/bin/nosetests test_apps.py
> figleaf2html -d ~/web/figleaf -f figleaf_files.txt
> chmod -R a+rx ~/web/figleaf
>
> 'figleaf_files.txt' is a list of files I want displayed on the output
> webpage. Save this as a file with the extension .csh or .sh and then run
> this every time you want to run figleaf. It will automatically remove the
> old .figleaf file, create your web page, and set permissions to view it.
Hmm, oddly enough, nobody has ever asked for a command line option to
figleaf to make it start with a new .figleaf file.
Thanks, Tim, this is useful info for everyone.
--titus
--
C. Titus Brown, ctb at msu.edu
More information about the cse491-fall-2009
mailing list