custody
v0.1.13
Published
e2e testing for chatbots
Downloads
12
Maintainers
Readme
Custody
of naughty chatbots!
E2E test framework for your conversational bot. Supports Messenger, Slack, more ? Bots are everywhere, and they need to behave!
Getting Started
Visit Custody Website for all documentation.
For a quick setup and run:
- Follow the Tutorial
- API Reference
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!'
}
})
);
});
});