https://github.com/ashubham/custody
E2E testing for chatbots
https://github.com/ashubham/custody
bots chatbot e2e-testing test test-automation test-framework
Last synced: about 1 year ago
JSON representation
E2E testing for chatbots
- Host: GitHub
- URL: https://github.com/ashubham/custody
- Owner: ashubham
- License: mit
- Created: 2017-03-30T06:14:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-22T18:40:23.000Z (over 8 years ago)
- Last Synced: 2025-05-11T13:46:14.148Z (about 1 year ago)
- Topics: bots, chatbot, e2e-testing, test, test-automation, test-framework
- Language: TypeScript
- Homepage: https://ashubham.github.io/custody
- Size: 576 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Custody
> of naughty chatbots!
E2E test framework for your conversational bot.
Supports Messenger, Slack, more ? Bots are everywhere, and they need to behave!
[](https://travis-ci.org/ashubham/custody)
[](https://badge.fury.io/js/custody)
[](https://coveralls.io/github/ashubham/custody?branch=master)
[](https://david-dm.org/docpress/docpress)
[](https://david-dm.org/docpress/docpress#info=devDependencies)
## Getting Started
-------------------
Visit [Custody Website](http://ashubham.github.io/custody) for all documentation.
For a quick setup and run:
- Follow the [Tutorial](http://ashubham.github.io/custody/start/tutorial.html)
- [API Reference](https://ashubham.github.io/custody/reference/api/postMessage.html)
## Installation
`$ npm i -g custody`
## Basic Usage
-------------------
`$ custody --platform=slack --framework=jasmine --token=xoxp-123-123
--specs=test/**/* --defaultRecipient=C928721`
```javascript
// 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!'
}
})
);
});
});
```