custody
TypeScript icon, indicating that this package has built-in type declarations

0.1.13 • Public • Published

Custody

of naughty chatbots!

Custody logo

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!'
                }
            })
        );
    });
});

Package Sidebar

Install

npm i custody

Weekly Downloads

1

Version

0.1.13

License

MIT

Last publish

Collaborators

  • ashubham