You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In previous investigations and research (see #251), it was determined that the Discord.js framework is too cumbersome and coupled to write an effective unit testing framework for it, even with our own wrapper class.
However, another possibility to test the bot is to use integration tests in the form of a "tester" bot interacting with the bot and "listening" for a response. This response can then be compared with the expected behavior for the bot.
If this idea is viable, we can then create a followup epic to add the integration test framework for the bot and go from there.
Acceptance Criteria
A proof of concept application involving the current instance of Codey should be produced, showcasing the ability to
call commands from Codey (both regular and slash), get a response from Codey, and be able to listen/pipe their response;
be able to react to messages from Codey (e.g. for blackjack)
be able to interact with modals from Codey (e.g. for RPS)
If one or more of the points is impossible, this should be indicated. A partial test framework is better than none.
The text was updated successfully, but these errors were encountered:
However, I do not think it is possible with the Sapphire client. Only when desapphirication is done can we adopt this testing framework.
mcpenguin
added
request
Request for a new feature or other modification
and removed
request
Request for a new feature or other modification
labels
Mar 3, 2023
Description of proposed feature
In previous investigations and research (see #251), it was determined that the Discord.js framework is too cumbersome and coupled to write an effective unit testing framework for it, even with our own wrapper class.
However, another possibility to test the bot is to use integration tests in the form of a "tester" bot interacting with the bot and "listening" for a response. This response can then be compared with the expected behavior for the bot.
If this idea is viable, we can then create a followup epic to add the integration test framework for the bot and go from there.
Acceptance Criteria
A proof of concept application involving the current instance of Codey should be produced, showcasing the ability to
If one or more of the points is impossible, this should be indicated. A partial test framework is better than none.
The text was updated successfully, but these errors were encountered: