[LRUG] Managing processes from cucumber
Sam Livingston-Gray
geeksam at gmail.com
Fri Jul 18 09:47:59 PDT 2014
Coincidentally, I've been pondering a similar question for an internal gem
I've been working on this week. (We want to spin up a fresh Kafka server
so one botched test run doesn't leave state hanging around for subsequent
runs.) We're using Aruba, but I didn't notice childprocess when I was
going through it. Thanks, Andrew, for the pointer! John, I'm glad you
asked, too! :)
-Sam
On Fri, Jul 18, 2014 at 9:43 AM, John Cinnamond <jc at panagile.com> wrote:
> Thanks guys - I'll look at aruba and child process. I'm glad I asked now
> :-)
>
>
> On Fri, Jul 18, 2014 at 5:37 PM, Andrew Premdas <apremdas at gmail.com>
> wrote:
>
>>
>>
>>
>> On 18 July 2014 15:23, John Cinnamond <jc at panagile.com> wrote:
>>
>>> Hello Lruggers
>>>
>>> Does anyone know of a gem to manage starting/stopping/interacting with
>>> processes from cucumber? I want to write features along the lines of:
>>>
>>> Given some_process is running
>>> And my fake_third_party_service is running
>>> And some_other_process is stopped
>>> When I make a request
>>> And I start some_other_process
>>> Then I see a message on the fake third party server
>>> And the output from some_other_process is "OK"
>>>
>>> Where the gem can starts & stops processes and redirect stdio.
>>>
>>> I have written something similar on a project to do full end-to-end
>>> testing of a RESTful API service. Before I tidy it up and gem-ify it I want
>>> to make sure that there isn't something similar out there that I could
>>> use/contribute to. I tried searching for gems with 'cucumber' in the name
>>> and looking on The Ruby Toolbox but couldn't find anything, although I
>>> could have missed it.
>>>
>>> Thanks,
>>> John
>>>
>>>
>> If you look at the gemspec for aruba you will see it uses the child
>> process gem to do stuff which is similar to what you are doing.
>>
>> All best
>>
>> Andrew
>>
>>
>>> _______________________________________________
>>> Chat mailing list
>>> Chat at lists.lrug.org
>>> Archives: http://lists.lrug.org/pipermail/chat-lrug.org
>>> Manage your subscription:
>>> http://lists.lrug.org/options.cgi/chat-lrug.org
>>> List info: http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>>>
>>>
>>
>>
>> --
>> ------------------------
>> Andrew Premdas
>> blog.andrew.premdas.org
>>
>
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> Archives: http://lists.lrug.org/pipermail/chat-lrug.org
> Manage your subscription: http://lists.lrug.org/options.cgi/chat-lrug.org
> List info: http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20140718/74654f14/attachment-0003.html>
More information about the Chat
mailing list