Mark> I'm trying to run the testtools code.  The Outlook code that sets
    Mark> up the Data/Ham, Data/Spam directories etc just exports the text
    Mark> body of the message, but completely ignores 'attachments'.  I'm
    Mark> out of time for tonight - can you offer any quick clues how your
    Mark> test environment is setup?

Quick clue: I'm not using Outlook or Windows. ;-) I don't know what to do
given that Outlook shreds email so completely.  Maybe this stuff can only be
tested on Unix-y machines.  Maybe the image analysis code won't even work
because there's no such thing as an attachment with MIME content-type
image/*... in Outlook.

As for actual setup, it's done in what I think is the "usual" way.  I start
with two or more Unix mbox format files (at least one full of ham, one full
of spam).  I then run utilities/splitndirs.py to allocate them to the
desired number of Data/{Ham,Spam}/SetN directories.  I then make a series of
runs like so:

    # control run
    python testtools/timcv.py ... args ... > std.txt
    python testtools/rates.py std.txt

    # one or more test runs with various parameters changed
    python testtools/timcv.py ... slightly different args ... > testN.txt
    python testtools/rates.py testN.txt
    python testtools/cmp.py stds.txt testNs.txt

My guess is there's an easier way to run the tests and summarize the
results, but it had been awhile since I'd done any testing either.  This was
the first "working" setup I stumbled upon, and thanks to my enormous bash
command history buffer, I just recall the commands as I need them, so the
pain of re-remebering is small.

HTH,

Skip
_______________________________________________
spambayes-dev mailing list
spambayes-dev@python.org
http://mail.python.org/mailman/listinfo/spambayes-dev

Reply via email to