Custody

of naughty chatbots!

E2E test framework for your conversational bot.
Supports Messenger, Slack, more ? Bots are everywhere, and they need to behave!

Build Status npm version Coverage Status Dependency status Dev Dependencies Status

Getting Started


Visit Custody Website for all documentation.

For a quick setup and run:

Installation

$ npm i -g custody

Basic Usage


$ custody --platform=slack --framework=jasmine --token=xoxp-123-123 --specs=test/**/* --defaultRecipient=C928721

// test/sample.tests.js
describe('This is a sample test', () => {
    it('Sample test 1', () => {
        csty.postMessage('Hello?');
        csty.waitForResponseToBe('World!');
        expect(csty.getLastMessage()).toEqual(
            jasmine.objectContaining({
                payload: {
                    body: 'World!'
                }
            })
        );
    });
});