[TIP] Writing Separate Functional Tests
noah.gift at gmail.com
Wed Nov 21 07:18:17 PST 2007
On Nov 21, 2007 10:14 AM, David Malcolm <dmalcolm at redhat.com> wrote:
> 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.
> Doesn't do recording AFAIK, but useful for invoking CLI tools in a
> testing context
I hadn't even thought of that, using pexpect is an interesting idea though.
Recording command line tools seems like it could be a really cool open
source testing project actually, now that I think about it more.... Maybe a
Sprint for PyCon?
> Hope this helps
> Dave Malcolm
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python