joeldesante / Harvey

Community managment Discord bot for the Old Dominion University Computer Science community.
GNU General Public License v3.0
6 stars 4 forks source link

Create test cases for each component of the bot #18

Open joeldesante opened 2 years ago

joeldesante commented 2 years ago

Test cases for each component of the bot need to be made.

willuhmjs commented 1 year ago

Creating test cases for discord.js is notoriously annoying. However, I recommend using mock objects if you want to get the job done.

joeldesante commented 1 year ago

Creating test cases for discord.js is notoriously annoying. However, I recommend using mock objects if you want to get the job done.

Good idea. And yes, I think I tried to do this a while ago and gave up when I realized how annoying it can be. WIth that in mind, we still might be able to test individual units of the bot by directly calling the functions. And we can probably just assume that DiscordJS will work given that they probably test their releases on their end anyway.

joeldesante commented 1 year ago

Bumping this issue because I'm finding it challenging to test all of our bots commands and features manually.