CoffeeScript Ddry Snippets
CoffeeScript snippets for ddry data-driven DRY Node JS testing wrapper
Labels snippets
Details
Installs
- Total 1K
- Win 409
- Mac 388
- Linux 270
May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Text CoffeeScript snippets for ddry
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
Error: language “coffee” is not supported
'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
Error: language “coffee” is not supported
'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.
Matchers
m:
formatcher: 'plain'
m:a
formatcher: 'anyOrder'
m:c
formatcher: 'contains'
m:e
formatcher: 'error'
m:p
formatcher: 'property'
Hooks
bh
forbefore
hookah
forafter
hook
Keep focused and save your time.