On 20 July 2013 01:29, Graham Ashton <[email protected]> wrote: > On 19 Jul 2013, at 21:52, Andrew Premdas <[email protected]> wrote: > > > Cucumber is a tool for doing BDD. If you misuse it and try and write > unit tests, or even declarative acceptance tests then, it is expensive, > however if you learn to use effectively and appropriately, i.e. do BDD > withit then you can dramatically reduce costs in lots of different ways. > > Can you elaborate on these ways? I'm genuinely interested in what it is > that people feel it gives 'em that they haven't already got from a decent > story and a good integration test. > > some things that perhaps wouldn't come from just a decent story and integration test are
1. A high level map of the intention and reasoning of your application. I think a really good set of features can be like a tube map. 2. Tools to write build other features. As an application develops context specific methods used to implement step definitions give you a toolset to build subsequent features. Done well this can give you a sort of DSL for exercising your application. Good Features are synergistic, the big benefits emerge from their interaction. This is not obvious when writing a few feature, to get a particular task done Gherkin is limited by design and necessity, but you still have the power of natural language at you disposal, and in particular the ability to choose the level of abstraction in which you express yourself. Using gherkin isn't stopping you from sketching, conversing and expressing the problem in other ways. Gherkin is a tool to refine that expression of knowledge into something that is concise and executable, yet still retaining a natural language element in the code base. This bridges the divide between the code and the story. > -- > You received this message because you are subscribed to the Google Groups > "NWRUG" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/nwrug-members. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- ------------------------ Andrew Premdas blog.andrew.premdas.org -- You received this message because you are subscribed to the Google Groups "NWRUG" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nwrug-members. For more options, visit https://groups.google.com/groups/opt_out.
