Lazyweb: are there testing regimes / frameworks that require / encourage each test case to be accompanied with a (natural language) rationale? eg not just the input and expected output but WHY that output is the expected one? cc
Conversation
Behavior Driven Development (BDD) is what comes to mind for me, at least! RSpec is one example of a DSL for doing this: rspec.info
"it" seems to provide room to generalise beyond the specific test case, although I wonder how often it is used that way. (c.f. semaphoreci.com/community/tuto) cc where many of the examples simply restate the expected output)
2
Not sure if this is what you mean, but there are ways of having 'shared examples' which I definitely used in practice (back when I did Ruby for my day job): relishapp.com/rspec/rspec-co
1
Show replies

