botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
68 stars 83 forks source link

Native support for unit testing #60

Closed slvnperron closed 4 years ago

slvnperron commented 7 years ago

It would be nice to be able to Unit Test the bots behavior. This is mostly for enterprise clients.

slvnperron commented 7 years ago

GitHub Milestone botpress/botpress#1

epaminond commented 5 years ago

Adding this advice here not to forget when we'll get to this task.

you can use any regular unit testing library such as mocha to write unit tests for your bot. If you want to test that messages get sent/received, I suggest that you look into writing a custom outgoing middleware https://help.botpress.io/t/testing-chatbots/44

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

epaminond commented 5 years ago

@slvnperron , @rndlaine , @EFF , I'm not sure stale bot does good job closing issues like this. Do you think that makes sense?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.