TheBoyzDev / NewbRanker

Discord BOT
0 stars 0 forks source link

Add Unit Testing #7

Open MiguelSantos96 opened 1 year ago

MiguelSantos96 commented 1 year ago

Unit testing is an important process for testing the individual units of code in our Discord Bot project. It will help us catch bugs and errors early in the development process, and increase our confidence in the quality of our code. By implementing unit testing, we can ensure that our Discord Bot project is reliable, maintainable, and scalable.

Goals: The goals of adding unit testing to our Discord Bot project are to improve code quality, reduce bugs and errors, and increase our confidence in the code. We want to catch any issues early in the development process so that we can address them before they become larger problems down the line.

Scope: We will test the individual units of code in our Discord Bot project using unit testing frameworks such as Jest or Mocha. We will focus on testing the most critical and complex parts of our code, such as the commands, event listeners, and message parsing functions.

Resources: We can use the official documentation for Jest or Mocha to help us implement unit testing in our Discord Bot project. There are also many helpful tutorials and best practices available online that can guide us through the process.

Acceptance Criteria: To consider this issue complete, we must have a test suite in place that tests the critical and complex parts of our code, and meets a minimum code coverage percentage of 80%. The tests must pass without any errors, and any bugs or issues discovered during testing must be fixed before this issue can be closed.