[LRUG] Writing readable feature tests with RSpec

Najaf Ali ali at happybearsoftware.com
Fri Jul 25 03:41:48 PDT 2014


> I have never been sold on cucumber, it just seems like testing
mastrubation.

Bwahaha! To each his/her own I suppose, (there's plenty in my toolchain
that others would find totally worthless) but I've been told that
masturbation is definitely more fun than Cucumber.

/switches on Tom Stuart bat signal


On Fri, Jul 25, 2014 at 11:32 AM, James McCarthy <james at lety.co> wrote:

>  I have never been sold on cucumber, it just seems like testing
> mastrubation.
>
> Unit testing and some integration testing yes but much more than that is
> it becomes and end to itself, testing for the sake of writing tests.
>
> James.
>
> On 25/07/14 11:16, James Turley wrote:
>
> It's an interesting approach. I too have been suspicious of cucumber in
> terms of adding an extra dependency and an extra stage to the testing
> process. Readability for non-technical people is not a problem I've faced
> directly, though.
>
>  I guess if you did want to optimise for code reuse, you could abstract
> common factory/setup methods into a module and include that?
>
>
> On Fri, Jul 25, 2014 at 10:26 AM, Joel Chippindale <
> joel.chippindale at futurelearn.com> wrote:
>
>> We recently blogged about how, at FutureLearn, we write readable feature
>> tests with RSpec*, see
>> https://about.futurelearn.com/blog/how-we-write-readable-feature-tests-with-rspec/,
>> and it made me wonder how common this approach was.
>>
>>  Are any of you using this approach already? If so, how are you finding
>> it?
>>
>>  J.
>>
>>
>>  * Hat tip to the developers at Econsultancy who introduced me to this
>> way of using RSpec.
>>
>> _______________________________________________
>> 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
>>
>>
>
>
> _______________________________________________
> Chat mailing listChat 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
>
>
> --
> James McCarthy
>
> Software Engineer
>
> LetyCo - Analyse, Build, Deliver
> Ruby/Rails software for London and the SouthEast.
>
> Mob:  07577006897
>
> Email:  james at lety.co
> lety.co
>
>
> _______________________________________________
> 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/20140725/55ebcbe1/attachment-0003.html>


More information about the Chat mailing list