of naughty chatbots!
E2E test framework for your conversational bot.
Supports Messenger, Slack, more ? Bots are everywhere, and they need to behave!
Visit Custody Website for all documentation.
For a quick setup and run:
$ npm i -g custody
$ 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!'
}
})
);
});
});