[TIP] Writing Separate Functional Tests
David Malcolm
dmalcolm at redhat.com
Wed Nov 21 07:14:49 PST 2007
On Wed, 2007-11-21 at 09:35 -0500, Noah Gift wrote:
> I have a gigantic threaded beast I need to test, and I want to write
> functional tests that supplement the doctests and unittests, but
> wanted some advice on the proper way to do this. I have not seen much
> documentation on writing non-web functional tests, my tool is a CLI
> tool. The basic thing I want to verify is that my tool creates a XML
> file with the information I would expect to be there. For example, is
> there a selenium equivalent for command line tools?
>
Have you tried the "expect" tool; see e.g.
http://pexpect.sourceforge.net/
Doesn't do recording AFAIK, but useful for invoking CLI tools in a
testing context
Hope this helps
Dave Malcolm
More information about the testing-in-python
mailing list