[TIP] Functional Test Runner for Command Line Tools?

Olemis Lang olemis at gmail.com
Tue Apr 14 06:19:39 PDT 2009


On Tue, Apr 14, 2009 at 12:27 AM, Noah Gift <noah.gift at gmail.com> wrote:
> On Tue, Apr 14, 2009 at 4:39 PM, Robert Collins
> <robertc at robertcollins.net> wrote:
>> On Tue, 2009-04-14 at 00:33 -0400, Gary Bernhardt wrote:
>>> On Tue, Apr 14, 2009 at 12:15 AM, Noah Gift <noah.gift at gmail.com> wrote:
>>> > In looking at http://pycheesecake.org/wiki/PythonTestingToolsTaxonomy
>>> > I don't see something that automates writing functional tests for
>>> > command line tools.  Hopefully, I am wrong, but I am looking for
>>> > something that will fully exercise a command line tool easily.  How is
>>> > everyone else testing their command line tools?
>>>
>>> I've had good success just shelling out with subprocess:
>>>
>>> output = Popen(command, stderr=STDOUT, stdout=PIPE, shell=True).read()
>>>
>
> That sounds like a great start to a generic testing library for
> testing command line tools.  Any chance that will happen?
>

Uffff ... you got me ... I was tring to include this in dutest last
weekend. What t(he)ll, I hate to see how the mind is faster than my
hands ... :)

You can count on this. Its coming soon in dutest ... ;)

-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:



More information about the testing-in-python mailing list