andersfylling / disgord

Go module for interacting with the documented Discord's bot interface; Gateway, REST requests and voice
BSD 3-Clause "New" or "Revised" License
496 stars 70 forks source link

feat: simpler integration tests #454

Open andersfylling opened 2 years ago

andersfylling commented 2 years ago

It's currently a lot of work getting integration tests to work locally. While there is a need to verify error handling, I believe it's currently more productive to remove all the setup requirements for integration tests to run. Instead the bot will create a guild such that there is no need to verify permissions or set anything up.

Meaning the only requirement should be one discord token for testing, and then all integration tests should work. After this, integration tests can run per PR.

Might have to talk to the discord staff to reduce some rate limits if I get a lot of PRs.

New flow:

andersfylling commented 2 years ago

Current blocker is adding members. We need at least one member in any server created. This can be a bot, just need to figure out how to add one automatically on creation.