4 ms·
Nice article.. some examples would be helpful in understanding the author's thesis. "I believe tests should be written in the language most natural for the pro
by jonmc12 16y ago
Nice article.. some examples would be helpful in understanding the author's thesis.
"I believe tests should be written in the language most natural for the problem" - I agree with this. However, to assume natural language is the most fit expression I believe is a jump. Natural language is laden in ambiguity to the point where it misses out on creating specifications in a concise way.
I tend to drift towards the field of thought that BDD should be used to constrain the spec - purposely eliminating ambiguity. I think this is the real opportunity in BDD. This article (http://blog.objectmentor.com/articles/2008/11/27/the-truth-about-bdd http://blog.objectmentor.com/articles/2008/11/27/the-truth-a...) illustrates the point well - making BDD specs analogous with a DSL described by finite state machines. "(BDD) connects the human concept of cause and effect, to the software concept of input/process/output".
So, in this sense using BDD tools like cucumber for expressing natural language can possibly bypass the opportunity to constrain the spec by using constrained natural language or DSLs that best describe the problem domain more explicitly.