Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smoke Tests #61

Open
mdiller opened this issue Mar 22, 2022 · 0 comments
Open

Smoke Tests #61

mdiller opened this issue Mar 22, 2022 · 0 comments

Comments

@mdiller
Copy link
Owner

mdiller commented Mar 22, 2022

Mangobyte currently doesn't have any testing. This isn't ideal. What I'd like to have is a test framework that can run commands, and verify that at least the command finished without erroring. Then I could give it a couple example inputs for each command, and let it run a suite of those commands. I started work on something like this a while ago (in the 'tests' branch) but with slash commands now being a thing, I wont be able to use any of that. The big missing piece here is some sort of test framework that can call slash commands and monitor the output of them. I'm envisioning that working in 1 of 3 ways:

  1. Some sort of shim/mock implementation that lets me call slash command functions without actually running the bot. If this is possible and robust this would probably the best option because this would also be faster than alternatives.
  2. Maybe at some point discord will allow bots to run slash commands. Then I could just have a bot that calls a bunch of mangobyte commands and monitors the output of the commands. That'd be great and would be a decent way to do this.
  3. A web-based automation thing like Selenium that pretends to be a user on a browser entering slash commands. (this isnt ideal for a number of reasons)
@mdiller mdiller changed the title Test Framework Smoke Tests Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant