[cse491] figleaf shell script

Tim Miller mille449 at msu.edu
Mon Nov 9 15:53:07 PST 2009


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.

--tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/cse491-fall-2009/attachments/20091109/daa52964/attachment.htm>


More information about the cse491-fall-2009 mailing list