Skip to content

Investigate "integration tests" using another bot #433

Open
@mcpenguin

Description

@mcpenguin

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

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    requestRequest for a new feature or other modification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions