Incapamentum / Exalted-Sage

Discord bot that does API requests to retrieve a collection of daily achievements for the next day and pushes an alert when any that is in a watchlist shows up.
3 stars 0 forks source link

Make use of unit test framework #58

Closed Incapamentum closed 1 year ago

Incapamentum commented 1 year ago

As the above title says, it's about time to integrate a unit test framework to the project for a wide number of reasons. Primarily, it may be difficult to try and replicate prod behavior in a dev environment due to limits in the current functionality of the project.

Prod behavior could be emulated via unit tests. Currently, Microsoft does offer a framework, along with a guide. Will look into this.

Incapamentum commented 1 year ago

Making use of MSTest as the test framework. Works pretty well. A document will likely be written explaining the setup of tests, since all tests have to be public void, and it doesn't work well with async methods for testing.