Some simple snippets to write SugarTest javascript tests on TextMate.
st<tab>
writes "SugarTest"SugarTest<tab>
creates the test skeletonco<tab>
writes contexts with "context" and "should"de<tab>
writes contexts with "describe" and "it"sh<tab>
writes units with "should"it<tab>
writes units with "it"ali<tab>
writes thesetWhateverAlias
call for youjst<tab>
inserts- the
script
tags needed to use SugarTest (referencing both jsunittest.js and jshoulda.js) - or the
div#id=testlog
needed by the JsUnitTest logger
- the
uni<tab>
writes a call tounifyRunners
.
Combine with the JavaScript Unit Testing TextMate bundle to obtain complete happiness.
Yes, but we still have no video to show you.