bclindner / chipbot2.0

Discord port of the original IRC Chiptunes=WIN bot.
0 stars 0 forks source link

TDD/BDD and CI #6

Open bclindner opened 6 years ago

bclindner commented 6 years ago

This would take a bit of work, but would help maintenance efforts tremendously - we practically wouldn't have to test the thing ourselves at all.

We'll definitely want to use mocha for this, being the biggest and baddest Node.js test framework out there.

The main problem here is that there's no good way to locally test a Discord bot, AFAIK. I guess it's possible to have a Discord server set up specifically for testing, launch the bot with a test token, and then write a bot that acts as a client, but that could turn out to be an awful lot of work.