Custody
of naughty chatbots!
E2E test framework for your conversational bot.
Supports Messenger, Slack, more ? Bots are everywhere, and they need to behave!
![Dev Dependencies Status](http://img.shields.io/david/dev/docpress/docpress.svg?style=flat-square)
Getting Started
Visit Custody Website for all documentation.
For a quick setup and run:
Basic Usage
$ npm i -g custody
$ custody --platform=slack --framework=jasmine --token=xoxp-123-123 --specs=test/**/* --defaultRecipient=C928721
describe('This is a sample test', () => {
it('Sample test 1', () => {
app.postMessage('Hello?');
app.waitForResponseToMatch('World!');
expect(app.getLastMessage()).toEqual(
jasmine.objectContaining({
payload: {
body: 'World!'
}
})
);
});
});