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

Integration tests needed #40

Open
Altreus opened this issue Jun 30, 2020 · 0 comments
Open

Integration tests needed #40

Altreus opened this issue Jun 30, 2020 · 0 comments

Comments

@Altreus
Copy link
Member

Altreus commented Jun 30, 2020

I've been putting off behavioural tests - integration tests, I guess - because I don't know how to achieve it.

What we really need to be able to test is how the system behaves in various scenarios from Discord itself.

The prime target for that is connectivity. We have been having trouble with reconnecting (#41) after unknown events (net drop? forced disconnection?) and so we want to have a test library that will pretend to be Discord for the WebSocket class.

  • Faux Discord server for integration tests
  • E2E testing of scenarios:
    • Message sent/received
      • including embeds
    • Reactions added/removed
    • Member joins/leaves
  • Unit tests for all classes

More to be added as I think of it

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