mock-hubot-robot
Provides a mock robot context used to provide testing support for Hubot script development
Install
npm install mock-hubot-robot
Features
Currently only supports testing regex triggers
Use
Assuming a file in a test folder off the root of your hubot source Using Mocha and Chai
some-test-file-name.js
var robotCtx = testscript = expect = expect
testscript.coffee
= robothear /who's here/ consolelog"called"
Output
Testing that my robot hears correctly
✓ hears phrase "who's here"
1 passing (11ms)