Comments (12)
My team has created a mock for mocking botkit conversations. We have been using that internally for automated testing with mocha. We're running some checks to see how fit it would be for botkit as a whole..will cycle back and push a fork if it's applicable.
from botkit.
@nikbora As referenced above, our team has been internally using a mock solution to test botkit conversations and api responses.
I've uploaded our mock and some test examples to the repo below. hope this is helpful!
https://github.com/amplicity/BotMock
from botkit.
@ghostsquad We don't have any system for testing yet -- would you be interested in submitting a PR with one?
from botkit.
How did you test Botkit? manual testing?
from botkit.
You can mock the Slacks API responses and make Botkit think that it is connecting with Slack @ghostsquad
from botkit.
@ghostsquad we don't yet have a solid testing system for Botkit and would love help implementing one. We do have a couple of tests. For example, we test storage modules using storage/storage_test.js
.
from botkit.
It should be noted that storage options are now in separate repos/modules and have tests using stubs etc against them.
from botkit.
I think the best way is to use a web-token and code some command issuing layer over some like slack-cli
slack client for command line. We can catch answers from bot, we can speak in different ambients, and also it's not need to fake each crucial function nor objects. I just was reading a test for an hour, that is using near to 4 libraries, and I had to do a lot of effort to understand just a % of the whole testing scripts. What do you think?
from botkit.
Hey guys, I too am curious as to what people are doing to automatically test their bot/conversation logic, other than connecting it to Slack and manually interacting with it.
Does anyone have example code with a mocked up Slack API or a mocked up conversation object used in automated tests?
from botkit.
I've got it! I am using nightmare, it works like a charm. But need coding.
from botkit.
@amplicity that sounds cool, looking forward to it. Feel free to share your process even if you don't think it belongs inside of botkit, perhaps via another repo or a blog post.
from botkit.
moving discussion over here #850
from botkit.
Related Issues (20)
- Send proactive message on MS teams HOT 2
- botkit 4.15.0 and Webex Adapter 1.0.10 are not on NPM HOT 1
- How to upload this Bot to Teams? HOT 2
- Bot can send, but not receive anymore HOT 2
- Botkit Webex API client not returning data HOT 1
- Question: Handling Websocket terminations HOT 1
- Uncatchable throws on botbuilder-adapter-webex registerWebhookSubscription Functions HOT 19
- Conversation become "duplicated" when running long operation HOT 1
- Help in Implementing the B2C Chatbot
- Webex Teams Adapter Doesn't Support direct_mention Event Type
- ☺
- BotkitConversation not executing when using axios but its executing fine when calling inside request?
- Cannot read property '1' of undefined
- Block Action Issue (when 'Clear Selection' is clicked)
- Can I message a pages followers with this??
- Remove deprecated request package
- Is project Dead? HOT 2
- Botkit
- Server Crash due to Missing Credentials in Slack Adapter
- npm install -g yo generator-botkit HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botkit.