Use code blocks from markdown documents in your tests
Take this README file for example. There are multiple code blocks in here, that serve as usage examples for the user. However, since these examples are supposed to describe what the module does, why not go ahead and use them as the specification?
Ok, hang on, I'll explain later. First have a look at this example:
var markdownBdd = ;// declare what to use as input and what global variables to assumevar example =;;