TESTBOT
Writing your hubot script?
Make unit tests with TESTBOT
.
It's easy.
Usage
Write your test-cases like
Testbot = require 'testbot'assert = require 'assert' describe 'hubot'-> bot = null # create new bot before each test beforeEach bot = botload './src''hello.coffee'done # clear bot after each test afterEach -> do botclear # write your test cases describe 'hello'-> it 'should send world' botsend 'hubot hello' assertequal res"world" do done
and run with mocha
$ mocha hubot hello ✓ should send world 1 passing
Install
$ npm install testbot --save-dev