[LRUG] Managing processes from cucumber

Gerhard Lazu gerhard at lazu.co.uk
Fri Jul 18 10:41:24 PDT 2014


ChildProcess + 1

Setting process specific envs is very neat, as is inheriting the parent
process io.

Having vetted the code, I wouldn't be ashamed of having it in my codebase.
After all, any gem that your app uses becomes part of its codebase.

On Friday, 18 July 2014, John Cinnamond <jc at panagile.com
<javascript:_e(%7B%7D,'cvml','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
>


-- 

------------------------------
Twitter <http://twitter.com/#!/gerhardlazu> Github
<https://github.com/gerhard> Blog <http://gerhard.lazu.co.uk/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20140718/d12282db/attachment.html>


More information about the Chat mailing list