-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Writing Unit Tests #177
Comments
Thank you for your time. Team RabbitMQ uses GitHub issues for specific actionable items engineers can work on. GitHub issues are not used for questions, investigations, root cause analysis, discussions of potential issues, etc (as defined by this team). We get at least a dozen of questions through various venues every single day, often light on details. Please post this to rabbitmq-users. Thank you. |
Hello - I suggest checking out the test suite for this library, perhaps. If you have specific tests in mind, give it your best shot, put your work in a git repository or gist, and ask a question on the |
I personally believe in integration tests and not mocking. Bunny tests demonstrate some approaches that should be applicable to any client library or programming language. Don't forget that integration tests of messaging systems are inherently asynchronous and concurrent so the hardest part is usually knowing what event to wait for and how, and using sensible timeouts. |
Greetings, I am trying to figure out the best way to write unit tests against these examples.
I tried to use the package amqp-mock but its not compatible (for example, yours use close(), and the mock uses done()).
Would you mind to provide some examples or point me to where I could read some examples?
The text was updated successfully, but these errors were encountered: