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

request: e2e testing implementation #745

Closed
1 task done
pwnyprod opened this issue Apr 17, 2024 · 2 comments
Closed
1 task done

request: e2e testing implementation #745

pwnyprod opened this issue Apr 17, 2024 · 2 comments

Comments

@pwnyprod
Copy link

Is there an existing issue or pull request for this?

  • I have searched the existing issues and pull requests

Feature description

The idea is to implement maybe as a plugin or jest extension the possibility to test the bots functionality in end to end cases on a dedicated Discord Server.

Desired solution

Its just an idea so i dont have a real solution for that and i might not have the knowledge to sugest something but i love this framework and what you create here :3

Alternatives considered

Maybe a decoupled module for testing the bots commands in an integration testing way.

Additional context

Wanted to thank you for all your work, keep it up, you do and did a great job <3

@favna
Copy link
Member

favna commented Apr 17, 2024

I'm sorry but realistically this is the wrong repository to make this request. Sapphire Framework is a framework on top of DiscordJS and we don't actually do anything API related. You'll actually want a DiscordJS e2e framework and not a Sapphire one. Once a DiscordJS one exists, we can consider adding a layer on top of it. That said, testing discord bots is a topic that's been discussed many times and always leads to the same conclusion, do not test the actual API layer but only test the functionality of your bot by extracting that code. Testing the actual API part is testing the Discord API and you don't need to do that, that's for Discord to do. You could explore https://github.com/ephemeralrogue/gauntlet, but I have no experience with it and I have no idea how well if at all it works.

In general, we have addressed the topic of testing bots before on the Discord server:

ishare-1713347525

@pwnyprod
Copy link
Author

ok thanks for clarifying and give me that hint. so maybe this needs to be addressed to discord itself.

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

2 participants