How to test o_O #1404
Unanswered
AdamBrianBright
asked this question in
Q&A
How to test o_O
#1404
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Here's the deal, I'm kind of a newbie when it comes to testing, but it really bugs me. Golang has built-in testing support and, although I understand how to mock my DB updates and write my code to be easely testable, I still can't figure out how to test that my bot properly handle incoming interactions and properly send responses.
I know I can create a testing app, add it to a testing Discord server, run my bot and check manually that it works, but I wish there was an easy way to test it with go toolchain. Don't get me wrong, the API of this library may require a bit of a documentation upgrade, but it's fairly easy to use and there's little to no points where it can fail, BUT it does.
Most of my failure points that I catch over and over (mb cuz i'm a dum dum):
I know I can mock, but... I mean... I can't write my code, do you really trust me to write a mock?
Beta Was this translation helpful? Give feedback.
All reactions