Set of CoffeeScript snippets for ddry data-driven DRY Node JS testing wrapper.
Scope of all these snippets is source:coffee, so please save your brand new data-driven spec file as .coffee to enable them.
Then, even if you haven't decided yet what are you going to test, ddp tab will expand to
'use strict'
module.exports = (dd) ->
dd.drive [
dd.pending()
]This spec is very promising since it can actually engage every test harness, but sadly useless.
To start actual testing, expand dd tab it tab to
'use strict'
module.exports = (dd) ->
dd.drive [
it: 'get things done'
i: [ input ]
e: expected
]Then cit will give you comma and the next it object, so please start it at correct indent level.
Use ddr to start just dd.drive call, ddc for dd.context. And we have now only minor snippets left.
m:formatcher: 'plain'm:aformatcher: 'anyOrder'm:cformatcher: 'contains'm:eformatcher: 'error'm:pformatcher: 'property'
bhforbeforehookahforafterhook
Keep focused and save your time.
