weather-bot / WxKitty

氣象喵(氣象機器人) Weather Bot implement on Line, Telegram, and Messenger
http://fb.me/WxKitty.tw
MIT License
112 stars 32 forks source link

Create a test simulating a bot #18

Open tigercosmos opened 6 years ago

tigercosmos commented 6 years ago

With more and more commands we have created, we need a complete test that make sure all command will follow the rules in index.js. We need a new test for doing this, which can simulate a bot that receive commands. Unit test can only test functions but not the real bot.

tigercosmos commented 6 years ago

We should also let PR be able to pass travis.

tigercosmos commented 6 years ago

https://bottender.js.org/docs/Guides-Testing

Bottender
Bottender | Make Bots Your Way, Fast and Flexible
Bottender | Make Bots Your Way, Fast and Flexible